/* ===== Ajmal Digital — Design System ===== */
:root {
  --teal-900: #04342C;
  --teal-800: #085041;
  --teal-700: #0F6E56;
  --teal-500: #1D9E75;
  --teal-100: #9FE1CB;
  --teal-50: #E1F5EE;
  --navy: #0B2436;
  --navy-light: #16344B;
  --ink: #14181C;
  --ink-secondary: #565E66;
  --ink-muted: #8A9199;
  --border: #E6E9EC;
  --surface: #FFFFFF;
  --surface-alt: #F6F8F7;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; background: var(--surface-alt); }
.container, section, header, footer, main { max-width: 100vw; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 60px 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-lead { font-size: 16px; color: var(--ink-secondary); max-width: 620px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn {
  white-space: normal;
  text-align: center;
  word-break: break-word;
}
.hero-actions .btn,
.about-cta .btn,
.cta-band .btn {
  min-width: 0;
  flex-shrink: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-alt); }
.btn-light { background: #fff; color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
body {
  padding-top: 76px;
}
section, main > * { scroll-margin-top: 90px; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { 
  display: flex; 
  align-items: center;
}

.logo img { 
  height: 65px; 
  width: auto; 
  display: block;
  background: transparent;
}

.main-nav { display: flex; gap: 36px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink-secondary); }
.main-nav a:hover, .main-nav a.active { color: var(--teal-700); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: all 0.3s ease; }

/* ===== Hero ===== */
.hero { padding: 40px 0; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.01em; margin-bottom: 20px; }
.hero p { font-size: 17px; color: var(--ink-secondary); margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img { border-radius: var(--radius-lg); width: 100%; }

/* ===== About ===== */
.about { background: var(--surface-alt); border-radius: var(--radius-lg); margin: 0 24px; padding: 15px 48px; }
.about .container { max-width: 1080px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--ink-secondary); margin-bottom: 14px; font-size: 15.5px; }
.about-copy .credentials { font-size: 14px; color: var(--ink-muted); margin-top: 18px; }
.about-copy .credentials a { color: var(--teal-700); font-weight: 500; }
.about-cta { margin-top: 20px; }
.about-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.about-stat strong { font-size: 40px; color: var(--teal-700); }
.about-stat span { font-size: 14px; color: var(--ink-secondary); }
.about-media img { border-radius: var(--radius-lg); width: 100%; max-height: 520px; object-fit: cover; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--teal-500); transform: translateY(-2px); }
.service-icon {
  width: 44px; height: 44px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-700);
  font-size: 20px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--ink-secondary); margin-bottom: 18px; }
.service-card .link { font-size: 14px; font-weight: 600; color: var(--teal-700); }
.case-body .link { font-size: 14px; font-weight: 600; color: var(--teal-700); display: inline-block; margin-top: 14px; }

/* ===== Certifications ===== */
.certs { background: var(--surface-alt); }
.carousel-wrap { position: relative; }
.carousel-wrap::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 16px; width: 48px;
  background: linear-gradient(to right, transparent, var(--surface-alt));
  pointer-events: none;
}
.carousel-wrap.on-white::after { background: linear-gradient(to right, transparent, #fff); }
.carousel-nav {
  display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px;
}
.carousel-nav button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; color: var(--ink);
}
.carousel-nav button:hover { background: var(--surface-alt); }
.carousel-nav button:disabled { opacity: 0.35; cursor: default; }
.certs-grid, .case-grid { cursor: grab; }
.certs-grid.dragging, .case-grid.dragging { cursor: grabbing; scroll-snap-type: none; }
.certs-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  scrollbar-width: none;
}
.certs-grid::-webkit-scrollbar { display: none; }
.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  flex: 0 0 160px;
  min-height: 350px;
  min-width: 280px;
  scroll-snap-align: start;
}
.cert-card img {
  border-radius: 6px;
  margin-bottom: 10px;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
  min-height: 240px;
  min-width: 180px;
}
.cert-card p { font-size: 13px; font-weight: 600; }
.cert-card span { font-size: 12px; color: var(--ink-muted); }

/* ===== Case Studies (Homepage Carousel) ===== */
.case-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  scrollbar-width: none;
}
.case-grid::-webkit-scrollbar { display: none; }
.case-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; flex: 0 0 82%; scroll-snap-align: start; }
@media (min-width: 700px) { .case-card { flex-basis: 340px; } }
.case-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.case-body { padding: 22px; }
.case-body h3 { font-size: 17px; margin-bottom: 10px; }
.case-body p { font-size: 14px; color: var(--ink-secondary); margin-bottom: 14px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-size: 12px; font-weight: 600; background: var(--teal-50); color: var(--teal-800); padding: 4px 10px; border-radius: 100px; }

/* ===== Stats ===== */
.stats { background: var(--navy); border-radius: var(--radius-lg); margin: 0 24px; padding: 15px 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat strong { display: block; font-size: 36px; color: #fff; font-weight: 700; }
.stat span { font-size: 14px; color: #A8B6C1; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px; font-weight: 600; font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--teal-700); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 20px; color: var(--ink-secondary); font-size: 14.5px; }

/* ===== Contact ===== */
.contact { background: var(--surface-alt); border-radius: var(--radius-lg); margin: 0 24px; padding: 40px 48px; }
.contact .container { max-width: 1080px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info p.lead { color: var(--ink-secondary); margin-bottom: 24px; font-size: 15px; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-detail i { color: var(--teal-700); width: 20px; }
.contact-detail a { font-size: 14.5px; color: var(--ink); }
.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

.contact-form-homepage {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}

.contact-form-homepage .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-form-homepage .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form-homepage label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-form-homepage input,
.contact-form-homepage textarea,
.contact-form-homepage select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.15s ease;
}

.contact-form-homepage input:focus,
.contact-form-homepage textarea:focus,
.contact-form-homepage select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-50);
}

.contact-form-homepage textarea {
  min-height: 110px;
  resize: vertical;
  margin-bottom: 16px;
}

.contact-form-homepage .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .contact { padding: 40px 24px; margin: 0 16px; }
  .contact .container { grid-template-columns: 1fr; }
  .contact-form-homepage .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .contact { padding: 24px; margin: 0; }
  .contact-form-homepage { padding: 20px; }
}

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #fff; padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-top h2 { font-size: 30px; margin-bottom: 20px; }
.footer-email a { font-size: 20px; font-weight: 600; color: var(--teal-100); }
.footer-tagline { color: #A8B6C1; font-size: 14.5px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 13px; color: #8393A0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.site-footer img { 
  height: 45px; 
  width: auto; 
  display: block;
  background: transparent;
}

/* ===== Scroll reveal (lightweight) ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  section { padding: 40px 0; }
  .hero { padding: 32px 0; }
  .about { padding: 20px 24px; margin: 0 16px; }
  .contact { padding: 32px 24px; margin: 0 16px; }
  .info-block { padding: 40px 0; }
  
  .nav-toggle { display: block; }
  .hero .container, .about .container, .contact .container, .footer-top { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  section { padding: 24px 0; }
  .hero { padding: 20px 0; }
  .about { padding: 16px 16px; margin: 0 12px; }
  .contact { padding: 20px 16px; margin: 0 12px; }
  .info-block { padding: 32px 0; }
  .stats { margin: 0 12px; padding: 16px 16px; }
  
  .container { padding: 0 18px; }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 420px) {
  section { padding: 20px 0; }
  .hero { padding: 18px 0; }
  .about { padding: 14px 14px; margin: 0 8px; }
  .contact { padding: 16px 14px; margin: 0 8px; }
  .info-block { padding: 24px 0; }
  
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 13px; font-size: 13px; }
  .logo img { height: 65px; width: auto; display: block; background: transparent; }
}

/* ===== AI Automation Service Page ===== */
.alt-bg { background: var(--surface-alt); }

.trust-signals { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; padding: 0; }
.trust-signals li { list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-secondary); }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 980px; margin: 0 auto; align-items: start; }
.intro-problems h3 { font-size: 16px; margin-bottom: 16px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 15px; color: var(--ink-secondary); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal-700); font-weight: 700; }
.intro-highlight { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.intro-highlight p { font-size: 15px; color: var(--ink); margin-bottom: 18px; }

.card-list { margin: 14px 0; }
.card-list li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14px; color: var(--ink-secondary); }
.card-list li::before { content: "\2022"; position: absolute; left: 4px; color: var(--teal-500); }
.card-outcome { font-size: 13.5px; font-weight: 600; color: var(--teal-700); margin-top: 6px; }

.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.audience-grid li { list-style: none; display: flex; align-items: center; gap: 10px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; font-weight: 500; }
.audience-grid li i { color: var(--teal-700); }
.audience-note { text-align: center; margin-top: 28px; font-size: 15px; color: var(--ink-secondary); }
.audience-note strong { color: var(--teal-700); }

.why-grid .stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.why-grid .stat i { font-size: 22px; color: #FFFF; }
.why-grid .stat span { color: #fff; font-size: 14.5px; font-weight: 600; }

.workflow-grid {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 4px 4px 16px; scrollbar-width: none; cursor: grab;
}
.workflow-grid::-webkit-scrollbar { display: none; }
.workflow-card { flex: 0 0 280px; scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.workflow-card img { width: 100%; height: auto; aspect-ratio: 7/8; object-fit: cover; display: block; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.pricing-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
.pricing-badge { position: absolute; top: -12px; right: 24px; background: var(--teal-700); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 100px; }
.pricing-card h3 { font-size: 19px; margin-bottom: 12px; }
.pricing-amount { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pricing-amount span { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-muted); margin-top: 2px; }
.pricing-maint { font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }
.pricing-note { font-size: 13.5px; color: var(--ink-secondary); margin: 12px 0 20px; flex-grow: 1; }
.pricing-card .btn { justify-content: center; }

.testimonial-grid {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 4px 4px 16px; scrollbar-width: none; cursor: grab;
}
.testimonial-grid::-webkit-scrollbar { display: none; }
.testimonial-card { flex: 0 0 320px; min-height: 220px; scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-size: 13px; }

.cta-band { background: var(--navy); text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.cta-band p { color: #A8B6C1; font-size: 15px; max-width: 560px; margin: 0 auto 28px; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
}

.certified-section{
    margin:24px 0;
    padding:24px;
    background:#fafafa;
    border-radius:10px;
    font-family:Arial,Helvetica,sans-serif;
}
 
.certified-title{
    font-size:13px;
    color:#666;
    margin-bottom:16px;
    font-weight:600;
}
 
.logos-grid{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}
 
.logo-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
}
 
.logo-icon{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #fafafa;
    transition:all .2s ease;
    background:#fafafa;
}
 
.logo-item:hover .logo-icon{
    border-color:#fafafa;
    background:#fafafa;
    transform:scale(1.1);
    box-shadow:0 4px 12px rgba(10,125,74,0.1);
}
 
.logo-label{
    font-size:10px;
    color:#666;
    font-weight:600;
    text-align:center;
    line-height:1.2;
    width:60px;
}
 
.logo-icon svg{width:32px;height:32px;}
 
/* Brand Colors */
.google-logo{background:#f5f5f5;}
.ahrefs-logo{background:linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);}
.semrush-logo{background:linear-gradient(135deg, #9bbb60 0%, #70ad47 100%);}
.hubspot-logo{background:#ff7a59;}
.silverhost-logo{background:#0066cc;}
.dgate-logo{background:#6b46c1;}
.grofo-logo{background:#ff6b6b;}
.protetech-logo{background:#0a7d4a;}
 
@media(max-width:600px){
    .logos-grid{gap:12px;}
    .logo-icon{width:45px;height:45px;}
    .logo-icon svg{width:28px;height:28px;}
    .logo-label{width:50px;font-size:9px;}
}

/* ===== Case Studies LISTING PAGE (Grid Layout) ===== */
.case-studies-wrap{max-width:1140px;margin:0 auto;padding:40px 20px 80px;font-family:Arial,Helvetica,sans-serif;color:#222;}
.case-header{text-align:center;margin-bottom:48px;}
.case-header-label{display:inline-block;background:#eafaf1;color:#0a7d4a;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:bold;text-transform:uppercase;margin-bottom:12px;}
.case-header h1{font-size:36px;margin:0 0 16px;line-height:1.2;}
.case-header p{color:#666;font-size:16px;margin:0;max-width:700px;margin-left:auto;margin-right:auto;}
.case-listing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px;margin-top:40px;}
.case-listing-card{border:1px solid #eee;border-radius:14px;overflow:hidden;background:#fff;transition:all .2s ease;box-shadow:0 2px 8px rgba(0,0,0,.04);}
.case-listing-card:hover{transform:translateY(-6px);box-shadow:0 12px 24px rgba(0,0,0,.12);}
.case-listing-card .case-card-icon{height:120px;display:flex;align-items:center;justify-content:center;font-size:48px;background:linear-gradient(135deg,#f5f5f5,#efefef);}
.case-card-body{padding:24px;}
.case-listing-card h3{font-size:20px;margin:0 0 10px;color:#222;}
.case-listing-card p{color:#666;font-size:14px;line-height:1.6;margin:0 0 18px;}
.case-card-btn{display:inline-block;color:#0a7d4a;text-decoration:none;font-weight:bold;font-size:14px;}
.case-card-btn:hover{text-decoration:underline;}

/* Card specific colors */
.ai-automation-card .case-card-icon{background:linear-gradient(135deg,#ff6d33,#ff5722);}
.ai-automation-card .case-card-icon{color:#fff;}
.seo-card .case-card-icon{background:linear-gradient(135deg,#0a7d4a,#066633);}
.seo-card .case-card-icon{color:#fff;}
.web-dev-card .case-card-icon{background:linear-gradient(135deg,#4285f4,#1967d2);}
.web-dev-card .case-card-icon{color:#fff;}
.social-media-card .case-card-icon{background:linear-gradient(135deg,#ff1493,#c71585);}
.social-media-card .case-card-icon{color:#fff;}
.google-ads-card .case-card-icon{background:linear-gradient(135deg,#ea4335,#c5221f);}
.google-ads-card .case-card-icon{color:#fff;}

@media(max-width:600px){
  .case-listing-grid{grid-template-columns:1fr;}
  .case-header h1{font-size:28px;}
}

.inner-wrap{max-width:1000px;margin:0 auto;padding:40px 20px 80px;font-family:Arial,Helvetica,sans-serif;}
.inner-back{display:inline-block;margin-bottom:20px;color:#0a7d4a;text-decoration:none;font-size:14px;font-weight:bold;}
.inner-back:hover{text-decoration:underline;}
.inner-header{margin-bottom:40px;}
.inner-label{display:inline-block;background:linear-gradient(135deg,#ff6d33,#ff5722);color:#fff;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:bold;text-transform:uppercase;margin-bottom:10px;}
.inner-header h1{font-size:32px;margin:0;line-height:1.2;color:#222;}
.inner-header p{color:#666;font-size:15px;margin:8px 0 0;}

.projects-list{margin-top:36px;}
.project-card{border:1px solid #eee;border-radius:12px;padding:24px;margin-bottom:20px;background:#fff;transition:all .2s ease;}
.project-card:hover{border-color:#0a7d4a;box-shadow:0 8px 20px rgba(10,125,74,.08);}
.project-title{font-size:18px;font-weight:bold;color:#222;margin:0 0 8px;}
.project-meta{font-size:13px;color:#999;margin:0 0 12px;display:flex;gap:16px;}
.project-brief{color:#555;font-size:14px;line-height:1.6;margin:0 0 16px;}
.project-results{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 16px;}
.result-badge{background:#eafaf1;color:#0a7d4a;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;}
.project-btn{display:inline-block;color:#0a7d4a;text-decoration:none;font-weight:bold;font-size:14px;}
.project-btn:hover{text-decoration:underline;}

@media(max-width:600px){
  .inner-header h1{font-size:24px;}
  .project-meta{flex-direction:column;gap:4px;}
}

.detail-wrap{max-width:900px;margin:0 auto;padding:40px 20px 80px;font-family:Arial,Helvetica,sans-serif;color:#222;}
.detail-back{display:inline-block;margin-bottom:24px;color:#0a7d4a;text-decoration:none;font-size:14px;font-weight:bold;}
.detail-back:hover{text-decoration:underline;}
.detail-label{display:inline-block;background:linear-gradient(135deg,#0a7d4a,#066633);color:#fff;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:bold;text-transform:uppercase;margin-bottom:12px;}
.detail-label.ai{background:linear-gradient(135deg,#ff6d33,#ff5722);}
.detail-label.seo{background:linear-gradient(135deg,#0a7d4a,#066633);}
.detail-label.web{background:linear-gradient(135deg,#4285f4,#1967d2);}
.detail-label.social{background:linear-gradient(135deg,#ff1493,#c71585);}
.detail-label.ads{background:linear-gradient(135deg,#ea4335,#c5221f);}
.detail-title{font-size:36px;margin:0 0 16px;line-height:1.2;}
.detail-client{font-size:14px;color:#888;margin:0 0 28px;}
.detail-section{margin:40px 0;}
.detail-section h2{font-size:20px;margin:0 0 12px;color:#222;}
.detail-section p{color:#555;font-size:15px;line-height:1.7;margin:0;}
.results-table{width:100%;border-collapse:collapse;margin-top:16px;}
.results-table th,.results-table td{padding:12px;text-align:left;border-bottom:1px solid #eee;}
.results-table th{background:#f5f5f5;font-weight:bold;color:#222;}
.results-table td{color:#555;}
.highlight{background:#eafaf1;padding:16px;border-radius:10px;margin-top:16px;font-weight:bold;color:#0a7d4a;font-size:16px;}
.tools-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.tool-tag{background:#f0f0f0;color:#333;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;}

@media(max-width:600px){
  .detail-title{font-size:24px;}
  .results-table th,.results-table td{padding:8px;font-size:12px;}
}

/* ===== Lightbox ===== */
.cert-card img { cursor: pointer; transition: opacity 0.15s ease; }
.cert-card img:hover { opacity: 0.85; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 52, 44, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 60px 20px 20px;
  cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  cursor: default;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  display: block;
  background: #fff;
  margin: 0 auto;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.lightbox-close:hover { background: var(--teal-50); }
.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 14px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .lightbox-close { top: -40px; width: 32px; height: 32px; font-size: 18px; }
}

/* ===== Contact Page ===== */

/* Quick Contact Methods */
#quick-contact { background: var(--surface-alt); }
.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-method {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.15s ease;
}
.contact-method:hover {
  border-color: var(--teal-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 110, 86, 0.08);
}
.method-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-size: 22px;
  margin: 0 auto 16px;
}
.contact-method h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.contact-method p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}
.contact-method .link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-700);
}

/* Contact Form Section */
.contact-form-section {
  background: var(--surface-alt);
}
.contact-form-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.contact-form-header {
  text-align: center;
  margin-bottom: 40px;
}
.contact-form-header h2 {
  margin-bottom: 12px;
}
.contact-form-header p {
  color: var(--ink-secondary);
  font-size: 15.5px;
}
.contact-form-main {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form-main input,
.contact-form-main textarea,
.contact-form-main select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: all 0.15s ease;
}
.contact-form-main input:focus,
.contact-form-main textarea:focus,
.contact-form-main select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-50);
}
.contact-form-main textarea {
  resize: vertical;
  min-height: 130px;
  margin-bottom: 16px;
}
.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.form-group.checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.form-group.checkbox label {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}
.contact-form-main .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Contact Info Cards */
#contact-info { }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.15s ease;
}
.info-card:hover {
  border-color: var(--teal-500);
  box-shadow: 0 8px 20px rgba(15, 110, 86, 0.08);
}
.info-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-size: 20px;
  margin: 0 auto 16px;
}
.info-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.info-card p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.info-card .link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-700);
}

/* Social Section */
.social-section {
  background: var(--surface-alt);
}
.social-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.social-content h2 {
  margin-bottom: 12px;
}
.social-content > p {
  font-size: 15.5px;
  color: var(--ink-secondary);
  margin-bottom: 28px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-size: 18px;
  transition: all 0.15s ease;
}
.social-links a:hover {
  background: var(--teal-700);
  color: #fff;
  border-color: var(--teal-700);
  transform: translateY(-2px);
}

/* CTA Band */
.cta-band {
  background: var(--navy);
  text-align: center;
  padding: 60px 24px;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 14px;
}
.cta-band p {
  color: #A8B6C1;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Responsive */
@media (max-width: 900px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-main {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .quick-contact-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-main {
    padding: 20px;
  }
  .social-links {
    gap: 10px;
  }
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Form Notification */
.form-notification {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.form-notification-success {
  background: #e8f7ee;
  color: #1a7d3f;
  border: 1px solid #b8e6c8;
}

.form-notification-error {
  background: #fdecec;
  color: #c0392b;
  border: 1px solid #f5c2c0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WhatsApp Floating Button */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-floating-btn:hover {
  background: #1ec860;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  animation: none;
}

.whatsapp-floating-btn svg {
  width: 28px;
  height: 28px;
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .whatsapp-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 768px) {
  .site-footer { padding-bottom: 40px; }
}

.info-block { padding: 60px 0; }
.info-block .container { max-width: 780px; }
.info-block .subsection {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.info-block .subsection:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.info-block .subsection h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}
.info-block .subsection p {
  font-size: 14.5px;
  color: var(--ink-secondary);
}
/* Mobile Menu Hamburger Styles */
@media (max-width: 900px) {
.main-nav {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 76px);
  height: auto;
  background: #fff;
  flex-direction: column;
  gap: 0;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

  /* Menu Open State */
  .main-nav.active {
    transform: translateX(0);
  }

  /* Navigation Links */
  .main-nav a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    color: var(--ink-secondary);
    transition: color 0.15s ease;
  }

  .main-nav a:hover {
    color: var(--teal-700);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* Hamburger Button */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    display: block;
    transition: all 0.3s ease;
  }

  /* Hamburger Animation - Change to X */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex !important;
  }
}
/* =========================================================
   CASE STUDY ADDITIONS
   Paste this whole block at the very end of style.css.
   Reuses existing design tokens (--teal-700 etc.) so it
   matches the rest of ajmaldigital.com automatically.
   ========================================================= */

/* Detail page — proof/screenshot image blocks */
.detail-img { margin: 28px 0; }
.detail-img img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.detail-img figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #888;
  text-align: center;
}
.detail-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.detail-img-row .detail-img { margin: 0; }
@media (max-width: 700px) {
  .detail-img-row { grid-template-columns: 1fr; }
}

/* Detail page — big stat numbers (hero metrics row) */
.stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.stat-box {
  flex: 1;
  min-width: 140px;
  background: #eafaf1;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.stat-box strong { display: block; font-size: 28px; color: #0a7d4a; line-height: 1.2; }
.stat-box span { font-size: 12px; color: #666; font-weight: 600; }

/* Detail page — testimonial box */
.testimonial-box {
  background: #f9f9f9;
  border-left: 4px solid #0a7d4a;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 24px 0;
}
.testimonial-box p { font-style: italic; color: #333; font-size: 15.5px; line-height: 1.7; margin: 0 0 12px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #eee;
}
.testimonial-author strong { display: block; font-size: 14px; color: #222; }
.testimonial-author span { font-size: 12.5px; color: #888; }

/* Detail page — client logo strip in header */
.detail-client-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.detail-client-logo img { height: 40px; width: auto; background: transparent; }

/* Detail page — numbered strategy blocks */
.strategy-block { margin-bottom: 24px; padding-left: 44px; position: relative; }
.strategy-block .num {
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: #0a7d4a; color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.strategy-block h3 { font-size: 16px; margin: 0 0 6px; color: #222; }
.strategy-block p, .strategy-block ul { color: #555; font-size: 14.5px; line-height: 1.7; }
.strategy-block ul { padding-left: 18px; list-style: disc; margin-top: 6px; }
.strategy-block li { margin-bottom: 6px; }

/* Detail page — final CTA card */
.detail-cta {
  background: var(--surface-alt, #f6f8f7);
  border: 1px solid var(--border, #e6e9ec);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-top: 40px;
}
.detail-cta h3 { font-size: 20px; margin-bottom: 10px; }
.detail-cta p { color: #666; font-size: 14.5px; margin-bottom: 18px; }

/* Listing page — "coming soon" placeholder card */
.project-card.placeholder {
  border-style: dashed;
  text-align: center;
  color: #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.project-card.placeholder i { font-size: 24px; margin-bottom: 12px; color: #ccc; }

/* ===== Back to Top Button ===== */
.back-to-top-btn {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: var(--teal-700);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, visibility 0.3s;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--teal-800);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 88px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
}

.chat-widget-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--navy, #0B2436);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 999;
  font-size: 24px;
  box-shadow: 0 0 0 2px rgba(29,158,117,0.5), 0 0 18px rgba(29,158,117,0.6);
  animation: chatGlow 2.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.chat-widget-btn:hover { transform: scale(1.08); }

@keyframes chatGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(29,158,117,0.5), 0 0 14px rgba(29,158,117,0.5); }
  50% { box-shadow: 0 0 0 2px rgba(64,196,255,0.6), 0 0 22px rgba(64,196,255,0.7); }
}

/* Greeting preview bubbles */
.chat-preview {
  position: fixed;
  bottom: 170px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 999;
  max-width: 220px;
}
.chat-preview.hidden { display: none; }
.chat-preview-bubble {
  background: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--ink, #14181C);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  animation: previewPop 0.3s ease;
}
@keyframes previewPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .chat-widget-btn { bottom: 85px; right: 20px; width: 55px; height: 55px; font-size: 21px; }
  .chat-preview { bottom: 150px; right: 20px; }
}

/* =========================================================
   AJMAL DIGITAL — CHAT WIDGET (COMPLETE STYLES)
   Paste this whole block at the very bottom of style.css
   ========================================================= */

/* ---- Chat bubble button (glowing robot icon) ---- */
.chat-widget-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--navy, #0B2436);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 999;
  font-size: 24px;
  box-shadow: 0 0 0 2px rgba(29,158,117,0.5), 0 0 18px rgba(29,158,117,0.6);
  animation: chatGlow 2.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.chat-widget-btn:hover { transform: scale(1.08); }

@keyframes chatGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(29,158,117,0.5), 0 0 14px rgba(29,158,117,0.5); }
  50% { box-shadow: 0 0 0 2px rgba(64,196,255,0.6), 0 0 22px rgba(64,196,255,0.7); }
}

/* ---- Greeting preview bubbles ---- */
.chat-preview {
  position: fixed;
  bottom: 170px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 999;
  max-width: 220px;
}
.chat-preview.hidden { display: none; }
.chat-preview-bubble {
  background: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--ink, #14181C);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  animation: previewPop 0.3s ease;
}
@keyframes previewPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Chat window (the popup box) ---- */
.chat-widget-window {
  position: fixed;
  bottom: 170px;
  right: 30px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 460px;
  max-height: calc(100vh - 200px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  border: 1px solid #E6E9EC;
}
.chat-widget-window.open { display: flex; }

.chat-widget-header {
  background: var(--navy, #0B2436);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-widget-header strong { font-size: 15px; }
.chat-widget-header span { font-size: 12px; color: #A8B6C1; display: block; margin-top: 2px; }
.chat-widget-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px; }

.chat-widget-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F6F8F7;
}
.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-msg.bot {
  background: #fff;
  border: 1px solid #E6E9EC;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--teal-700, #0F6E56);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.typing { color: #8A9199; font-style: italic; }

.chat-widget-inputrow {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #E6E9EC;
  background: #fff;
}
.chat-widget-inputrow input {
  flex: 1;
  border: 1px solid #E6E9EC;
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.chat-widget-inputrow input:focus { border-color: var(--teal-500, #1D9E75); }
.chat-widget-inputrow button {
  background: var(--teal-700, #0F6E56);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
}
.chat-widget-inputrow button:disabled { opacity: 0.5; cursor: default; }

/* ---- Mobile adjustments ---- */
@media (max-width: 768px) {
  .chat-widget-btn { bottom: 85px; right: 20px; width: 55px; height: 55px; font-size: 21px; }
  .chat-preview { bottom: 150px; right: 20px; }
}

@media (max-width: 480px) {
  .chat-widget-window {
    bottom: 0; right: 0; left: 0;
    width: 100%; max-width: 100%;
    height: 80vh; max-height: 80vh;
    border-radius: 16px 16px 0 0;
  }
}

/* ---- Back-to-top button — moved to left side ---- */
.back-to-top-btn {
  left: 30px !important;
  right: auto !important;
}
@media (max-width: 768px) {
  .back-to-top-btn {
    left: 20px !important;
    right: auto !important;
  }
}