/*
Theme Name: MyDubai TV
Theme URI: https://mydubaisub.xyz/
Author: MyDubai TV
Description: A clean, light WordPress theme for a Dubai television showroom — sticky header, hero, brand grid and a comparison table with TV brands managed as a custom post type.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 7.1
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: dubai-tv-hub
Tags: light, custom-menu, custom-logo, featured-images, responsive-layout, translation-ready
*/

/* =======================================================================
   Design tokens
   ======================================================================= */

:root {
  --bg:         #ffffff;
  --bg-alt:     #f6f7f9;
  --surface:    #ffffff;
  --surface-2:  #f9fafb;
  --line:       #e6e9ef;
  --line-2:     #dfe3ea;
  --text:       #131926;
  --muted:      #5d6b82;
  --accent:     #1e3a8a;
  --accent-dark:#172d6e;
  --accent-soft:#1e3a8a;
  --accent-bright:#0a48de;
  --accent-tint:#eaeffa;
  --accent-line:#d7ddec;
  /* Brand blue: logo tile, wordmark and the active menu pill. */
  --brand:      #0a48de;
  --brand-dark: #053dc9;
  --brand-tint: #e9eefe;
  --radius:     14px;
  --shadow:     0 10px 30px rgba(19, 25, 38, .08);
  --shadow-lg:  0 20px 45px rgba(19, 25, 38, .12);
  --max:        1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* =======================================================================
   Base
   ======================================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

/* Accessibility helpers ------------------------------------------------- */

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
  clip-path: none; color: var(--accent); display: block; font-size: .875rem;
  font-weight: 700; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
  text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =======================================================================
   Header
   ======================================================================= */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo:hover { color: var(--text); }

/* Rounded blue tile holding the little TV glyph. */
.logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: linear-gradient(150deg, #2f61f2 0%, var(--brand) 48%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 72, 222, .28);
}
.logo-mark .icon { width: 23px; height: 23px; stroke-width: 1.9; }

.logo-text { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; }
.logo-text strong { color: var(--brand); font-weight: 800; }

.custom-logo-link img { max-height: 46px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 19px; border-radius: 999px;
  color: var(--text); font-weight: 700; font-size: .96rem;
  transition: background .18s, color .18s;
}
.site-nav a .icon { flex: none; }
.site-nav a:hover { color: var(--brand); background: var(--brand-tint); }

.site-nav a.is-active,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a { color: #fff; background: var(--brand); }
.site-nav .current-menu-item > a:hover { color: #fff; background: var(--brand-dark); }

.site-nav .sub-menu {
  display: none; position: absolute; min-width: 200px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.site-nav li { position: relative; }
.site-nav li:hover > .sub-menu { display: block; }
.site-nav .sub-menu a { display: flex; padding: 9px 12px; border-radius: 8px; font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 40px; padding: 0;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--text); border-radius: 2px;
}

/* =======================================================================
   Hero / page head
   ======================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

/* Full-bleed picture, faded to white behind the copy on the left. */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 30%,
    rgba(255, 255, 255, .95) 40%,
    rgba(255, 255, 255, .64) 52%,
    rgba(255, 255, 255, 0) 72%
  );
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  min-height: clamp(400px, 44vw, 560px);
}

.hero-copy { max-width: 620px; }

.hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: .36em;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  padding: 7px 16px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--accent-soft); font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow .icon { stroke-width: 2; }

.hero .lead {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  max-width: 44ch;
  margin-bottom: 30px;
}

/* Four promises in a divided strip. */
.hero-features {
  display: flex; flex-wrap: wrap;
  margin: 0 0 32px;
  padding: 18px 0;
  border-top: 1px solid rgba(19, 25, 38, .1);
  border-bottom: 1px solid rgba(19, 25, 38, .1);
}

.hero-feature {
  display: flex; align-items: center; gap: 11px;
  padding: 0 24px;
  border-left: 1px solid rgba(19, 25, 38, .1);
}
.hero-feature:first-child { padding-left: 0; border-left: 0; }

.hf-icon { display: grid; place-items: center; color: var(--accent); flex: none; }
.hf-body { display: flex; flex-direction: column; line-height: 1.3; }
.hf-body strong { font-size: .93rem; color: var(--text); font-weight: 700; }
.hf-body small { font-size: .77rem; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 1px solid transparent;
  transition: transform .18s, background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }

.btn-ghost { border-color: var(--line-2); background: #fff; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

.page-head {
  padding: clamp(48px, 8vw, 84px) 0 clamp(32px, 5vw, 52px);
  background:
    radial-gradient(700px 340px at 85% -20%, rgba(30, 58, 138, .07), transparent 65%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-head .lead { max-width: 58ch; margin-bottom: 0; }

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb span { padding: 0 8px; opacity: .6; }

/* =======================================================================
   Sections & grid
   ======================================================================= */

.section { padding: clamp(52px, 8vw, 88px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-title { margin-bottom: 6px; }
.section-sub { margin-bottom: 34px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* =======================================================================
   Cards
   ======================================================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 2px 6px rgba(19, 25, 38, .04);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 58, 138, .35);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* "Built for Dubai Living" — number, icon tile, copy on the left, photo
   bleeding in from the right and fading out towards the text. */

.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hl-card {
  position: relative;
  min-height: 238px;
  padding: 22px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(19, 25, 38, .05);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hl-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.hl-card__photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 56%;
  pointer-events: none;
}
.hl-card__photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 40%, #000 78%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 40%, #000 78%);
}

.hl-card__body { position: relative; z-index: 1; max-width: 64%; }

.hl-card__num {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 9px;
  background: #e7ebfd;
  color: var(--brand);
  font-size: .74rem; font-weight: 800; letter-spacing: .05em;
}

.hl-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  margin: 14px 0 15px;
  border-radius: 16px;
  background: linear-gradient(155deg, #ffffff 0%, #eef1fd 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 12px rgba(23, 43, 99, .1), inset 0 0 0 1px rgba(216, 223, 250, .85);
  font-size: 1.5rem; line-height: 1;
}

.hl-card__title { margin: 0 0 .3em; font-size: 1.16rem; }
.hl-card__link { color: var(--text); }
.hl-card:hover .hl-card__link { color: var(--brand); }

/* Stretch the title link across the whole card so it is one big target. */
.hl-card__link::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
}

.hl-card__text { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }

.hl-card__go {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(19, 25, 38, .18);
  transition: background .2s, color .2s, transform .2s;
}
.hl-card:hover .hl-card__go { background: var(--brand); color: #fff; transform: translateX(2px); }

.card-feature { background: var(--surface-2); }

.tag {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-soft);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* Cards with a picture on top ------------------------------------------- */

.brand-card { padding: 0; overflow: hidden; }

.card-media {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.card-media img { width: 100%; display: block; }

.card-body { padding: 22px 26px 26px; }

.brand-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-head h3 { margin: 0; font-size: 1.3rem; }
.brand-head h3 a { color: var(--text); }
.brand-head h3 a:hover { color: var(--accent-soft); }

.badge {
  padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--muted); font-size: .74rem; font-weight: 700; white-space: nowrap;
}

/* =======================================================================
   Table
   ======================================================================= */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 2px 6px rgba(19, 25, 38, .04);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--surface-2); color: var(--accent-soft);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
tbody td { color: var(--muted); }
tbody td:first-child { color: var(--text); font-weight: 600; }
tbody td:first-child a { color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f7f9fd; }

/* =======================================================================
   Post content
   ======================================================================= */

.entry-content { max-width: 760px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }
.entry-content li { color: var(--muted); margin-bottom: .4em; }
.entry-content blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent-line); color: var(--text); font-style: italic;
}
.entry-content img,
.entry-content .wp-block-image img { border-radius: var(--radius); }

.entry-content a { text-decoration: underline; }
.entry-content a:hover { text-decoration: none; }

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.alignwide { max-width: 1000px; margin-inline: auto; }
.alignfull { max-width: none; width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6em; }

.sticky .card { border-color: var(--accent-line); }

.page-links { margin-top: 1.4em; font-weight: 600; }

.post-meta { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.post-meta a { color: var(--muted); }

.post-list { display: grid; gap: 22px; }

/* =======================================================================
   Footer
   ======================================================================= */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.footer-inner {
  display: grid; gap: 32px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding-bottom: 44px;
}

.footer-brand p { margin: 14px 0 0; max-width: 32ch; font-size: .92rem; }

.footer-col h4 {
  margin-bottom: 14px; color: var(--text);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.footer-col li { margin-bottom: 9px; color: var(--muted); font-size: .92rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent-soft); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  padding-block: 20px; border-top: 1px solid var(--line-2);
}
.footer-bottom p { margin: 0; font-size: .84rem; color: #8b97a8; }

/* =======================================================================
   Comments
   ======================================================================= */

.comments-area { max-width: 760px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comment-list { display: grid; gap: 20px; margin-bottom: 32px; }
.comment-list .children { margin-top: 20px; padding-left: 24px; }
.comment-body {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.comment-author img { border-radius: 50%; margin-right: 8px; }
.comment-metadata { font-size: .82rem; color: var(--muted); margin-bottom: .8em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
input[type="search"] {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
}
.comment-form input:focus,
.comment-form textarea:focus,
input[type="search"]:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }
.comment-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.comment-form .form-submit { margin-top: 18px; }
.comment-form input[type="submit"] {
  display: inline-block; padding: 13px 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--accent-dark); }

/* =======================================================================
   Responsive
   ======================================================================= */

/* Small laptop / large tablet --------------------------------------------- */
@media (max-width: 1100px) {
  .hero-copy { max-width: 560px; }
  .hero-feature { padding: 0 18px; }
}

/* Tablet ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* The picture fades back and becomes a soft backdrop behind the copy. */
  .hero-bg img { object-position: center; }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, .98) 0%,
      rgba(255, 255, 255, .94) 42%,
      rgba(255, 255, 255, .78) 76%,
      rgba(255, 255, 255, .58) 100%
    );
  }
  .hero-inner { min-height: 0; }

  .hero-features { padding: 16px 0; }
  .hero-feature { padding: 0 16px; gap: 10px; }
  .hf-icon svg { width: 22px; height: 22px; }
  .hf-body strong { font-size: .9rem; }
  .hf-body small { font-size: .75rem; }
}

/* Phone ------------------------------------------------------------------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute; inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 18px; }
  .site-nav a { display: flex; border-radius: 10px; padding: 13px 16px; }
  .site-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; }
}

@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.4rem); }
  .hero .lead { font-size: .98rem; margin-bottom: 26px; }

  /* The promise strip becomes a stacked list with hairline rules. */
  .hero-features {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 26px;
    border-top: 1px solid rgba(19, 25, 38, .1);
    border-bottom: 1px solid rgba(19, 25, 38, .1);
  }
  .hero-feature {
    padding: 13px 0;
    border-left: 0;
    border-top: 1px solid rgba(19, 25, 38, .08);
  }
  .hero-feature:first-child { border-top: 0; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* Highlight cards go full width; the photo stays on the right. */
  .hl-grid { grid-template-columns: 1fr; }
  .hl-card { min-height: 206px; padding: 20px; }
  .hl-card__photo { width: 50%; }
  .hl-card__body { max-width: 68%; }
  .hl-card__icon { width: 48px; height: 48px; margin: 12px 0 13px; border-radius: 14px; font-size: 1.35rem; }
  .hl-card__title { font-size: 1.08rem; }
  .hl-card__go { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .card { padding: 22px; }
  .brand-card { padding: 0; }
  .hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.1rem); }

  /* Give the copy a little more room on the narrowest screens. */
  .hl-card__photo { width: 44%; }
  .hl-card__body { max-width: 78%; }
  .hl-card__num { margin-bottom: 2px; }
}

/* =======================================================================
   Floating chat bubbles — WhatsApp right, Telegram left
   ======================================================================= */

.chat-bubble {
  position: fixed; top: 50%; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin-top: -28px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 24px rgba(19, 25, 38, .22);
  transition: transform .2s, box-shadow .2s;
}
.chat-bubble:hover,
.chat-bubble:focus-visible {
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 14px 30px rgba(19, 25, 38, .3);
}

.chat-bubble--right { right: 22px; }
.chat-bubble--left  { left: 22px; }

.chat-bubble--whatsapp { background: linear-gradient(150deg, #4ade80 0%, #25d366 52%, #17a34a 100%); }
.chat-bubble--telegram { background: linear-gradient(150deg, #45bdf0 0%, #229ed9 52%, #1781b4 100%); }

.chat-bubble__glyph { display: flex; align-items: center; justify-content: center; }
.chat-bubble__glyph .icon { width: 26px; height: 26px; }

/* The pill that slides out beside the bubble. */
.chat-bubble__label {
  position: absolute; top: 50%;
  padding: 8px 14px; border-radius: 999px;
  background: #131926; color: #fff;
  font-size: .82rem; font-weight: 700; white-space: nowrap;
  opacity: 0; visibility: hidden;
  transform: translateY(-50%) scale(.92);
  box-shadow: 0 8px 20px rgba(19, 25, 38, .28);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.chat-bubble--right .chat-bubble__label { right: calc(100% + 12px); transform-origin: right center; }
.chat-bubble--left .chat-bubble__label  { left: calc(100% + 12px);  transform-origin: left center; }

.chat-bubble:hover .chat-bubble__label,
.chat-bubble:focus-visible .chat-bubble__label {
  opacity: 1; visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* A soft halo so the bubbles catch the eye without shouting. */
.chat-bubble::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid currentColor; border-radius: 50%;
  opacity: 0; pointer-events: none;
  animation: chat-pulse 2.8s ease-out infinite;
}
.chat-bubble--telegram::after { animation-delay: 1.4s; }

@keyframes chat-pulse {
  0%   { opacity: .45; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.6); }
  100% { opacity: 0;   transform: scale(1.6); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-bubble,
  .chat-bubble::after,
  .chat-bubble__label { animation: none; transition: none; }
}

/* On phones the bubbles move to the bottom corners, clear of the copy, and
   the hover pill is dropped — the link keeps its accessible name. */
@media (max-width: 760px) {
  .chat-bubble {
    top: auto; bottom: 16px; margin-top: 0;
    width: 50px; height: 50px;
  }
  .chat-bubble--right { right: 16px; }
  .chat-bubble--left  { left: 16px; }
  .chat-bubble__glyph .icon { width: 23px; height: 23px; }
  .chat-bubble__label { display: none; }
}
