/* Mobile cards/grid tighten (homepage) */
@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr !important; gap: 16px !important; }
  .card { padding: 16px !important; }
  .card__icon { font-size: 22px !important; }
  .card__link { font-size: 13px !important; }
}

@media (max-width: 480px) {
  .card h3 { font-size: 1rem !important; }
  .card p { font-size: 0.9rem !important; }
}
/* Theme: Conc Red (#FF3B30), Black (#0E0E0E), White (#FFFFFF) */
:root{
  --red:#FF3B30;
  --black:#0E0E0E;
  --gray:#6B7280;
  --soft:#F5F7FA;
  --white:#FFFFFF;
  --radius:14px;
  --container:1200px;
  --topbar-h:56px;
  --header-h:72px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Poppins',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif;
  color:#111;
  background:#fff;
  line-height:1.5;
}

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

/* Topbar (thin strip over hero) */
.topbar{position:fixed;top:0;left:0;right:0;height:var(--topbar-h);background:#000;color:#cfcfcf;font-size:14px;z-index:90}
.topbar__inner{display:flex;align-items:center;height:100%;gap:18px;justify-content:space-between}
.topbar .container{padding-left:8px;padding-right:0}
.topbar__left{white-space:nowrap}
.topbar__welcome{padding-left:4px}
.topbar__items{list-style:none;display:flex;gap:22px;margin:0;padding:0;align-items:center;justify-content:flex-end}
.topbar__right{justify-self:end;height:100%;display:flex;align-items:stretch}
.topbar__right .topbar__talk{display:inline-flex;align-items:center;height:100%;background:var(--red);color:#fff;border-radius:0;padding:0 28px}

/* Topbar icons */
.icon{display:inline-block;width:16px;height:16px;margin-right:4px;vertical-align:middle;background-size:contain;background-repeat:no-repeat;background-position:center}.icon--clock{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>') center/16px 16px no-repeat}.icon--mail{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>') center/16px 16px no-repeat}.icon--location{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>') center/16px 16px no-repeat}

/* Header */
.header{position:fixed;top:var(--topbar-h);left:0;right:0;height:var(--header-h);z-index:80;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.header--on-hero{background:transparent;border-bottom-color:transparent}
.header--solid{background:#111;border-bottom-color:#1e1e1e}
.header__inner{display:flex;align-items:center;justify-content:space-between;height:100%}
.logo{display:flex;align-items:center;color:#fff;text-decoration:none;gap:10px}
.logo__mark{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--red);font-weight:800}
.logo__img{height:36px;width:auto;object-fit:contain}
.logo__text{font-weight:700}
.nav__toggle{display:none;background:none;border:0;color:#fff;font-size:22px}
.nav__list{display:flex;gap:30px;list-style:none;margin:0;padding:0;flex-wrap:nowrap}
.nav__list li{white-space:nowrap;min-width:auto}
.nav__list a{color:#cfd3d7;text-decoration:none;white-space:nowrap}
.nav__list a:hover{color:#fff}

/* Navigation Dropdown */
.nav__dropdown{position:relative}
.nav__dropdown-toggle{color:#cfd3d7;text-decoration:none;cursor:pointer;display:flex;align-items:center;gap:4px}
.nav__dropdown-toggle:hover{color:#fff}
.nav__dropdown-toggle::after{content:'▼';font-size:10px;transition:transform 0.2s}
.nav__dropdown:hover .nav__dropdown-toggle::after{transform:rotate(180deg)}
.nav__dropdown-menu{position:absolute;top:100%;left:0;background:#111;border:1px solid #242424;border-radius:8px;padding:12px 0;min-width:180px;opacity:0;visibility:hidden;transform:translateY(-10px);transition:all 0.2s ease;z-index:1000;box-shadow:0 8px 24px rgba(0,0,0,0.3)}
.nav__dropdown:hover .nav__dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.nav__dropdown-menu li{margin:0}
.nav__dropdown-menu a{display:block;padding:12px 20px;color:#cfd3d7;text-decoration:none;transition:all 0.2s}
.nav__dropdown-menu a:hover{background:#1a1a1a;color:#fff}
.header__actions{display:flex;gap:10px}
.icon-btn{background:#1f1f1f;color:#fff;border:1px solid #2a2a2a;border-radius:10px;padding:8px 10px;cursor:pointer}

/* Buttons */
.btn{display:inline-block;background:var(--red);color:#fff;text-decoration:none;padding:12px 22px;border-radius:12px;font-weight:600}
.btn--lg{padding:14px 26px;font-size:18px}
.btn--sm{padding:8px 12px;font-size:14px}

/* Sections */
.section{padding:clamp(48px,8vw,80px) 0}
.section__title{font-size:clamp(24px,4vw,42px);text-align:center;margin:0 0 28px}
.eyebrow{letter-spacing:.35em;text-transform:uppercase;color:#fff;opacity:.9}
.eyebrow-line{display:block;width:220px;height:6px;background:var(--red);border-radius:6px;margin:10px 0 14px}
.display{font-size:clamp(40px,9vw,88px);line-height:1.02;color:#fff;margin:8px 0 28px;font-weight:800}

/* Hero */
.hero{position:relative;min-height:100vh;background:#000;display:grid;align-items:center;padding-top:calc(var(--topbar-h) + var(--header-h))}
.hero{background-image:var(--hero-bg);background-size:cover;background-position:center}
.hero__overlay{position:absolute;inset:0;background:#000;opacity:.6}
.hero .btn{box-shadow:0 12px 28px rgba(255,59,48,.35)}
.hero__content{position:relative}

/* Let hero sit under fixed bars; later sections already follow hero */
main{margin-top:0}

/* Hero Right Contact Tab */
.hero__contact-tab{position:absolute;top:110px;right:24px;display:flex;align-items:center;gap:12px;background:#111;color:#fff;border-radius:12px;padding:10px 14px;box-shadow:0 10px 24px rgba(0,0,0,.35)}
/* Chat bubble icon with tail matching reference */
.hero__contact-icon{position:relative;width:38px;height:34px;border-radius:8px;background:#1f1f1f;border:1px solid #2a2a2a;display:block}
.hero__contact-icon:before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:#fff;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000"><path d="M20 2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h3.586L11 21.414 14.414 18H20a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM6 7h12v2H6V7zm0 4h8v2H6v-2z"/></svg>') center/contain no-repeat;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h3.586L11 21.414 14.414 18H20a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM6 7h12v2H6V7zm0 4h8v2H6v-2z"/></svg>') center/contain no-repeat}
.hero__contact-icon:after{content:"";position:absolute;right:8px;bottom:-6px;border-width:6px 6px 0 0;border-style:solid;border-color:#1f1f1f transparent transparent transparent;filter:drop-shadow(0 1px 0 #2a2a2a)}
.hero__contact-icon span{display:none}
.hero__contact-label{font-size:13px;color:#cfd3d7}
.hero__contact-phone{color:#fff;text-decoration:none;font-weight:700}

/* About */
.about__grid{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center}
.about__media{position:relative}
.about__img{background:#ccc;background-size:cover;background-position:center;border-radius:18px}
.about__img--main{height:min(460px,60vh)}
.about__img--overlay{position:absolute;right:-24px;bottom:-24px;height:260px;width:320px;border:10px solid #fff;border-radius:18px}
.about__badge{position:absolute;left:-20px;top:180px;background:var(--red);color:#fff;border-radius:16px;padding:16px 18px;display:flex;align-items:center;gap:12px}
.about__badge-icon{font-size:22px}
.about__badge-num{font-size:24px;font-weight:800}
.checklist{list-style:none;margin:18px 0 26px;padding:0}
.checklist li{margin:10px 0;padding-left:26px;position:relative}
.checklist li:before{content:'✓';position:absolute;left:0;color:var(--red);font-weight:700}

/* Services cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.card{background:#fff;border:1px solid #eee;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.card__media{height:180px;background-size:cover;background-position:center}
.card__icon{width:84px;height:84px;background:var(--red);display:grid;place-items:center;color:#fff;border-radius:12px;transform:translate(18px,-42px);box-shadow:0 10px 22px rgba(229,57,53,.35)}
.card h3{margin:-10px 18px 8px}
.card p{margin:0 18px 16px;color:#555}
.card__link{display:block;margin:0 18px 22px;color:#111;text-decoration:none;border:1px solid #e6e6e6;border-radius:12px;padding:12px 14px}
.card__link:hover{border-color:var(--red);color:var(--red)}

/* Split (Why) */
.dark{background:#0e0e0e;color:#fff}
.split__grid{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}
.accordion__item{width:100%;text-align:left;background:transparent;border:1px solid rgba(255,255,255,.15);color:#fff;border-radius:12px;padding:16px 18px;margin:12px 0;cursor:pointer;position:relative}
.accordion__panel{display:none;color:#FF3B30;margin-top:10px;font-weight:500}
.accordion__item[aria-expanded="true"] .accordion__panel{display:block}
.accordion__item[aria-expanded="true"] .plus{transform:rotate(45deg)}
.plus{color:var(--red);font-weight:800;position:absolute;right:16px}
.badge-tile{background:var(--red);color:#fff;border-radius:18px;padding:22px;display:flex;gap:12px;align-items:center;max-width:360px;margin-bottom:18px}
.badge-tile__icon{font-size:36px}
.split__img{height:380px;border-radius:18px;background-size:cover;background-position:center}

/* Portfolio */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.gallery__item{height:min(360px,40vh);border-radius:18px;background-size:cover;background-position:center;position:relative;overflow:hidden;display:block}
.gallery__item .gallery__overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));opacity:0;transition:opacity .25s}
.gallery__item:hover .gallery__overlay{opacity:1}
.gallery__meta{position:absolute;left:16px;bottom:14px;color:#fff}
.gallery__cat{display:block;font-size:12px;opacity:.9;text-transform:capitalize}
.gallery__title{display:block;font-size:16px;font-weight:700}

/* Testimonials */
.testimonials__grid{display:grid;grid-template-columns:1fr;gap:24px}
.testimonial{display:grid;grid-template-columns:120px 1fr;gap:18px;border-left:6px solid var(--red);background:#fff;border-radius:18px;padding:18px;align-items:center}
.testimonial__avatar{width:120px;height:120px;border-radius:50%;background-size:cover;background-position:center;border:6px solid #FFD0CE}
.stars{color:var(--red);font-size:20px}
.testimonial__author{color:#666;font-weight:600}

/* CTA */
.cta{background:#111;color:#fff}
.section.cta{padding:40px 0}
.cta__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: stretch;
}
.cta__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta__map {
    height: 100%;
    min-height: 280px;
    width: 100%;
}

.cta__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
}

/* News */
.news__cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.news-card{background:#fff;border-radius:18px;overflow:hidden;border:1px solid #eee}
.news-card__media{height:200px;background-size:cover;background-position:center;filter:none;transition:transform 0.3s ease}
.news-card:hover .news-card__media{transform:scale(1.05)}
.news-card__meta{padding:12px 16px;color:#808080;font-size:14px}
.news-card h3{padding:0 16px 10px;margin:0;color:#333;line-height:1.4;font-size:14px !important;font-weight:600}
.news-card__excerpt{padding:0 16px;color:#666;font-size:14px;line-height:1.5;margin:8px 0 12px}
.news-card__link{display:block;margin:0 16px 18px;color:var(--red);text-decoration:none;font-weight:600;transition:color 0.3s ease}
.news-card__link:hover{color:#dc2626}

/* News Section */
.news-section {
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  padding: 60px 0;
}

.news-section .section__title {
  color: #111;
  text-align: center;
  margin-bottom: 12px;
  font-size: 2rem !important;
}

.news-section .section__subtitle {
  color: #6b7280;
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.news-section__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.news-section-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.news-section-card__media {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.news-section-card__media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.news-section-card__content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-section-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #6b7280;
}

.news-section-card__date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.news-section-card__category {
  background: #fef2f2;
  color: #dc2626;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-section-card h3 {
  margin: 0 0 12px 0;
  color: #111;
  line-height: 1.4;
  font-size: 14px !important;
  font-weight: 600;
  flex-grow: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.4em;
}

.news-section-card__excerpt {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-section-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  margin-top: auto;
}

.news-section-card__link:hover {
  color: #dc2626;
  gap: 8px;
}

.news-section-card__link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.news-section-card__link:hover::after {
  transform: translateX(2px);
}

/* News Section Responsive */
@media (max-width: 1200px) {
  .news-section__cards {
    max-width: 900px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 900px) {
  .news-section {
    padding: 50px 0;
  }
  
  .news-section__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
  }
  
  .news-section .section__title {
    font-size: 1.8rem !important;
  }
  
  .news-section-card__media {
    height: 140px;
  }
  
  .news-section-card h3 {
    font-size: 13px !important;
    max-height: 2.3em;
  }
}

@media (max-width: 600px) {
  .news-section {
    padding: 40px 0;
  }
  
  .news-section__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }
  
  .news-section .section__title {
    font-size: 1.6rem !important;
    margin-bottom: 8px;
  }
  
  .news-section .section__subtitle {
    font-size: 0.9rem;
    margin-bottom: 32px;
  }
  
  .news-section-card__media {
    height: 160px;
  }
  
  .news-section-card__content {
    padding: 14px;
  }
  
  .news-section-card h3 {
    font-size: 12px !important;
    margin-bottom: 10px;
    max-height: 2.2em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .news-section-card__excerpt {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .news-section-card__link {
    font-size: 12px;
  }
  
  .news-section-card__meta {
    font-size: 11px;
    margin-bottom: 10px;
  }
  
  .news-section-card__category {
    font-size: 9px;
    padding: 3px 6px;
  }
}

/* Hide Elfsight Branding - Targeted approach */
.elfsight-app-04b77cec-5282-4d72-a3c9-40f2977a3c79 [class*="eapps-link"],
.elfsight-app-04b77cec-5282-4d72-a3c9-40f2977a3c79 [class*="powered"],
.elfsight-app-04b77cec-5282-4d72-a3c9-40f2977a3c79 a[href*="elfsight"],
.elfsight-app-04b77cec-5282-4d72-a3c9-40f2977a3c79 [class*="branding"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Reviews Section Styling */
.reviews {
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
}

.reviews .section__title {
  text-align: center;
  margin-bottom: 40px;
  color: #111;
}

/* Reviews Widget Container */
.reviews-widget-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Cover Button Positioning */
.reviews-cover-button {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  width: auto;
  min-width: 200px;
}

.reviews-cover-button .btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 180px;
}

.reviews-cover-button .btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Footer */
.footer{background:#0c0c0c;color:#bfbfbf}
.footer .logo{color:#fff}
.socials a{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#1a1a1a;color:#fff;text-decoration:none;margin-right:8px}
.footer__copy{border-top:1px solid #1f1f1f;padding:16px 0;color:#8d8d8d}
.footer__copy .footer__legal{display:flex;gap:20px;align-items:center}
.footer__copy .footer__legal a{color:#8d8d8d;text-decoration:none;font-size:14px;transition:color 0.2s}
.footer__copy .footer__legal a:hover{color:#fff}

/* Enhanced footer inspired by reference */
.footer--enhanced{position:relative;overflow:hidden}
.footer__newsletter{position:relative;background:#0e0e0e;background-image:linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.7)),url('../images/img8.jpg');background-size:cover;background-position:center}
.footer__newsletter:before{content:"";position:absolute;left:50%;transform:translateX(-50%);top:-140px;width:1600px;height:380px;border-bottom-left-radius:1000px;border-bottom-right-radius:1000px;background:#111;box-shadow:0 40px 120px rgba(0,0,0,.5);}
.footer__nl-wrap{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:20px;align-items:center;padding:70px 0}
.footer__nl-copy h2{margin:0 0 6px;color:#fff;font-size:36px}
.footer__nl-copy p{margin:0;color:#cfd3d7}
.footer__nl-form{display:flex;gap:10px;justify-content:flex-end}
.footer__nl-form input{flex:1;min-width:240px;background:#1a1a1a;border:1px solid #2a2a2a;border-radius:999px;color:#fff;padding:12px 16px}
.footer__nl-form .btn{border-radius:999px}

.footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:28px;padding:40px 0}
.footer__grid--enhanced{padding-top:22px;padding-bottom:40px}
.footer__grid--enhanced{border-top:1px solid #1a1a1a}
.footer__col h4{color:#fff;margin:0 0 12px}
.footer__col ul{list-style:none;margin:0;padding:0}
.footer__col li{margin:8px 0}
.newsletter{display:flex;gap:10px;align-items:center}
.newsletter input{flex:1;background:#1a1a1a;border:1px solid #272727;border-radius:12px;color:#fff;padding:10px 12px}
.agree{display:block;margin-top:8px;font-size:13px;color:#9d9d9d}

/* Newsletter Form Fields */
.newsletter-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.newsletter-form-fields input {
  background: #1a1a1a;
  border: 1px solid #272727;
  border-radius: 12px;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.newsletter-form-fields input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.newsletter-form-fields input::placeholder {
  color: #9d9d9d;
}

.footer__nl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nl-form .btn {
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

/* Back to top */
.back-to-top{position:fixed;right:18px;bottom:18px;width:48px;height:48px;border-radius:50%;background:var(--red);color:#fff;border:0;cursor:pointer;box-shadow:0 10px 22px rgba(229,57,53,.35)}

/* Responsive */
@media (max-width:1024px){
  .cards{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .news__cards{grid-template-columns:1fr 1fr}
  .about__grid,.split__grid,.cta__grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .display{font-size:44px}
  .section{padding:60px 0}
  .nav__toggle{display:block}
  .nav__list{display:none;position:absolute;right:24px;top:64px;background:#111;border:1px solid #242424;border-radius:12px;padding:20px;flex-direction:column;gap:20px}
  .nav__list.show{display:flex}
  .nav__dropdown-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:none;background:transparent;padding:0;margin-left:16px}
  .nav__dropdown-menu a{padding:8px 0;color:#cfd3d7}
  .cards,.gallery,.news__cards{grid-template-columns:1fr}
  .form__row{grid-template-columns:1fr}
  .hero__contact-tab{top:calc(var(--topbar-h) + 32px);right:16px}
}

/* Footer responsive */
@media (max-width:1024px){
  .footer__nl-wrap{grid-template-columns:1fr;gap:12px}
  .footer__nl-form{justify-content:flex-start}
  .footer__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  .footer__grid{grid-template-columns:1fr}
}


/* ===== Services Subpages ===== */
.subhero{position:relative;padding-top:calc(var(--topbar-h) + var(--header-h) + 40px);background:#0e0e0e;color:#fff}
.subhero__wrap{max-width:var(--container);margin:0 auto;padding:60px 24px}
.subhero h1{margin:0 0 10px;font-size:clamp(28px,6vw,56px)}
.subhero p{color:#cfd3d7;max-width:860px}

.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.service-card{background:#fff;border:1px solid #eee;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.service-card__media{height:200px;background-size:cover;background-position:center}
.service-card__body{padding:16px}
.service-card__body h3{margin:0 0 6px}
.service-card__body p{margin:0 0 12px;color:#555}
.service-card__actions{display:flex;gap:10px}

.faq{margin-top:24px}
.faq h3{margin:0 0 10px}
.faq .accordion__item{color:#111;border-color:#e6e6e6}
.faq .accordion__panel{color:#FF3B30;font-weight:500}

/* ===== Legal Pages ===== */
.hero--legal {
  background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 100%);
  padding: 120px 0 80px;
  text-align: center;
}

.hero--legal .hero__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.hero--legal .hero__subtitle {
  font-size: 18px;
  color: #cfd3d7;
  margin: 0;
}

.legal-content {
  padding: 80px 0;
  background: #fff;
}

.legal-content__wrapper {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: #333;
}

.legal-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.legal-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 30px 0 15px 0;
}

.legal-content p {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #555;
}

.legal-content ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.legal-content li {
  margin: 8px 0;
  font-size: 16px;
  color: #555;
}

.legal-content a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}

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

.footer__legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer__legal a {
  color: #8d8d8d;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .hero--legal .hero__title {
    font-size: 36px;
  }
  
  .hero--legal .hero__subtitle {
    font-size: 16px;
  }
  
  .legal-content {
    padding: 60px 0;
  }
  
  .legal-content h2 {
    font-size: 24px;
  }
  
  .legal-content h3 {
    font-size: 20px;
  }
  
  .footer__copy .footer__legal {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width:1024px){
  .service-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  .subhero h1{font-size:40px}
  .service-grid{grid-template-columns:1fr}
}

/* Web design details layout helpers */
.prose{max-width:900px}
.prose p{margin:0 0 14px;color:#333}
.lead{font-size:18px;color:#444}
.feature-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:10px}
.feature{background:#fff;border:1px solid #eee;border-radius:14px;padding:16px}
.feature h4{margin:0 0 6px}
.bullets{list-style:none;margin:10px 0 0;padding:0}
.bullets li{margin:8px 0;padding-left:18px;position:relative}
.bullets li:before{content:"–";position:absolute;left:0;color:#999}
@media (max-width:900px){
  .feature-list{grid-template-columns:1fr}
}

/* ===== Simple Carousel ===== */
.carousel{position:relative}
.carousel__viewport{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 2px 10px}
.carousel__viewport::-webkit-scrollbar{height:8px}
.carousel__viewport::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}
.carousel .card{min-width:320px;scroll-snap-align:start;flex:0 0 auto}
.carousel__controls{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}
.carousel__btn{background:#111;color:#fff;border:0;border-radius:10px;padding:10px 14px;cursor:pointer}
.carousel__btn[disabled]{opacity:.4;cursor:not-allowed}
@media (max-width:720px){
  .carousel .card{min-width:84%}
}

/* fix spacing when used without .cards grid */
.offers-carousel{margin-left:-2px;margin-right:-2px}

/* ===== Contact page styles (inspired by provided design) ===== */
.contact-hero{background:linear-gradient(135deg,var(--red),#b3140c);padding-top:calc(var(--topbar-h) + var(--header-h) + 40px);padding-bottom:60px;color:#fff}
.contact-hero__wrap{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.contact-hero__left{background:#111;border-radius:16px;padding:28px}
.contact-hero__left h1{margin-top:0}
.contact-info{list-style:none;margin:18px 0 0;padding:0;color:#e8d9ee}
.contact-info li{margin:10px 0}
.socials--on-dark a{background:#1a1a1a}
.contact-card{background:#f5f7fa;border-radius:16px;padding:18px;display:flex}
.contact-form{background:#fff;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:12px;flex:1}
.chip-group{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.chip{border:1px solid #ddd;border-radius:999px;padding:6px 10px;background:#f7f7f8;color:#444;cursor:pointer}
.chip--active{background:var(--red);color:#fff;border-color:var(--red)}
.contact-form label{display:flex;flex-direction:column;gap:6px;color:#555}
.contact-form input,.contact-form textarea{background:#fafafa;border:1px solid #e2e2e2;border-radius:10px;padding:10px 12px}
@media (max-width:900px){
  .contact-hero__wrap{grid-template-columns:1fr}
}

/* ===== Projects Page Styles ===== */
.projects-hero{
  position:relative;
  min-height:60vh;
  background:#000;
  display:grid;
  align-items:center;
  padding-top:calc(var(--topbar-h) + var(--header-h));
  background-image:var(--hero-bg);
  background-size:cover;
  background-position:center;
}
.projects-hero__overlay{
  position:absolute;
  inset:0;
  background:#000;
  opacity:.6;
}
.projects-hero__content{
  position:relative;
  max-width:800px;
}
.projects-hero__intro{
  font-size:18px;
  color:#cfd3d7;
  margin-top:20px;
  line-height:1.6;
}

/* Projects Filter */
.projects-filter, .insights-filter{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:40px;
  flex-wrap:wrap;
}
.filter-btn{
  background:#fff;
  color:#333;
  border:2px solid #e6e6e6;
  border-radius:999px;
  padding:12px 24px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.3s ease;
}
.filter-btn:hover{
  border-color:var(--red);
  color:var(--red);
}
.filter-btn--active{
  background:var(--red);
  color:#fff;
  border-color:var(--red);
}

/* Projects Grid */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
  gap:24px;
  margin-bottom:40px;
}

/* Insights Grid */
.insights-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
  gap:24px;
  margin-bottom:40px;
}
.project-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover{
  transform:translateY(-8px);
  box-shadow:0 16px 40px rgba(0,0,0,0.12);
}
.project-card__media{
  height:240px;
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
}
.project-card__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
  display:flex;
  align-items:flex-end;
  padding:20px;
  opacity:0;
  transition:opacity 0.3s ease;
}
.project-card:hover .project-card__overlay{
  opacity:1;
}
.project-card__content{
  color:#fff;
}
.project-card__category{
  display:inline-block;
  background:var(--red);
  color:#fff;
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.5px;
  margin-bottom:8px;
}
.project-card__title{
  font-size:20px;
  font-weight:700;
  margin:0 0 8px;
  line-height:1.3;
}
.project-card__overview{
  font-size:14px;
  color:#e0e0e0;
  margin:0 0 16px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.project-card__btn{
  display:inline-block;
  background:rgba(255,255,255,0.2);
  color:#fff;
  border:1px solid rgba(255,255,255,0.3);
  border-radius:8px;
  padding:8px 16px;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:all 0.3s ease;
  backdrop-filter:blur(10px);
}
.project-card__btn:hover{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}

/* Insight Cards */
.insight-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.insight-card:hover{
  transform:translateY(-8px);
  box-shadow:0 16px 40px rgba(0,0,0,0.12);
}
.insight-card__media{
  height:240px;
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
}
.insight-card__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
  display:flex;
  align-items:flex-end;
  padding:20px;
  opacity:0;
  transition:opacity 0.3s ease;
}
.insight-card:hover .insight-card__overlay{
  opacity:1;
}
.insight-card__content{
  color:#fff;
}
.insight-card__category{
  display:inline-block;
  background:var(--red);
  color:#fff;
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.5px;
  margin-bottom:8px;
}
.insight-card__title{
  font-size:16px;
  font-weight:700;
  margin:0 0 8px;
  line-height:1.4;
}
.insight-card__excerpt{
  font-size:14px;
  color:#e0e0e0;
  margin:0 0 12px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.insight-card__meta{
  display:flex;
  gap:12px;
  margin-bottom:8px;
  font-size:12px;
  color:#c0c0c0;
}
.insight-card__tags{
  margin-bottom:12px;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.insight-tag{
  background:rgba(255,255,255,0.2);
  color:#fff;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:500;
}
.insight-card__btn{
  display:inline-block;
  background:rgba(255,255,255,0.2);
  color:#fff;
  border:1px solid rgba(255,255,255,0.3);
  border-radius:8px;
  padding:8px 16px;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:all 0.3s ease;
  backdrop-filter:blur(10px);
}
.insight-card__btn:hover{
  background:var(--red);
  border-color:var(--red);
}

/* Loading and Error States */
.projects-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:60px 20px;
  color:#666;
}
.loading-spinner{
  width:40px;
  height:40px;
  border:4px solid #f3f3f3;
  border-top:4px solid var(--red);
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin-bottom:16px;
}
@keyframes spin{
  0% { transform:rotate(0deg); }
  100% { transform:rotate(360deg); }
}
.empty-state{
  text-align:center;
  padding:60px 20px;
  color:#666;
}
.empty-state__icon{
  font-size:48px;
  margin-bottom:16px;
}
.error-state{
  text-align:center;
  padding:60px 20px;
  color:#666;
}
.error-state__icon{
  font-size:48px;
  margin-bottom:16px;
}

/* Insights Hero Section */
.insights-hero{
  position:relative;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  padding:120px 0;
  color:#fff;
  text-align:center;
}
.insights-hero__overlay{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.6);
  z-index:1;
}
.insights-hero__content{
  position:relative;
  z-index:2;
  max-width:800px;
  margin:0 auto;
}
.insights-hero__intro{
  font-size:18px;
  line-height:1.6;
  margin-top:24px;
  opacity:0.9;
}

/* Insights Section */
.insights-section{
  padding:80px 0;
}
.insights-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:60px 20px;
  color:#666;
}

/* Comments Section */
.comments-section{
  margin-top:48px;
  padding-top:32px;
  border-top:1px solid #e5e7eb;
}

.comment-form{
  background:#f9fafb;
  padding:24px;
  border-radius:12px;
  margin-bottom:32px;
}

.comment-form h3{
  margin-bottom:16px;
  font-size:18px;
  font-weight:500;
  color:#374151;
}

.comment-form label{
  display:block;
  margin-bottom:8px;
  font-weight:500;
  color:#374151;
}

.comment-form input,
.comment-form textarea{
  width:100%;
  padding:12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  font-size:14px;
  transition:border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(255, 59, 48, 0.1);
}

.comment-form textarea{
  resize:vertical;
  min-height:100px;
}

.comments-list{
  margin-bottom:32px;
}

.comment-item{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:20px;
  margin-bottom:16px;
  transition:box-shadow 0.2s;
}

.comment-item:hover{
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.comment-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.comment-author{
  font-weight:600;
  color:#374151;
}

.comment-date{
  font-size:14px;
  color:#6b7280;
}

.comment-text{
  color:#4b5563;
  line-height:1.6;
}

.no-comments{
  text-align:center;
  padding:40px;
  color:#6b7280;
}

.no-comments h3{
  margin-bottom:8px;
  color:#374151;
}

/* Responsive design for comments */
@media (max-width:768px){
  .comment-form > div:first-child{
    grid-template-columns:1fr !important;
  }
  
  .comment-header{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
}

/* Contact Form Enhancements */
.contact-method-group {
  margin-bottom: 20px;
}

.contact-method-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: #374151;
}

.contact-method-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-method-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
  background: #fff;
}

.contact-method-option:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.contact-method-option input[type="radio"] {
  margin: 0;
  accent-color: #ef4444;
}

.contact-method-option input[type="radio"]:checked + span {
  font-weight: 600;
}

.contact-method-option:has(input[type="radio"]:checked) {
  border-color: #ef4444;
  background: #fef2f2;
}

.contact-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
}

.contact-status.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Chip group enhancements */
.chip-group {
  margin-bottom: 24px;
}

.chip {
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chip--active {
  background: #ef4444 !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive design for contact form */
@media (max-width: 768px) {
  .contact-method-options {
    flex-direction: column;
    gap: 12px;
  }
  
  .contact-method-option {
    justify-content: flex-start;
  }
}

/* Responsive design for news and insight cards */
@media (max-width: 1024px) {
  .news__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .insight-card__title {
    font-size: 15px;
  }
  
  .news-card h3 {
    font-size: 13px !important;
  }
}

@media (max-width: 768px) {
  .news__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .news-card__media {
    height: 180px;
  }
  
  .insight-card__title {
    font-size: 14px;
  }
  
  .news-card h3 {
    font-size: 12px !important;
  }
}

/* ===== Lunar Chatbot Styles ===== */
.chatbot-section {
  margin-top: 20px;
  position: relative;
  z-index: 15;
}

.chatbot-toggle-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 59, 48, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: center;
}

.chatbot-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 59, 48, 0.4);
}

.chatbot-toggle-btn:active {
  transform: translateY(0);
}

.chatbot-toggle-btn .chatbot-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}

.chatbot-toggle-btn .chatbot-text {
  white-space: nowrap;
}

.chatbot-interface {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  margin-top: 20px;
  height: 500px;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.3s ease-out;
  position: relative;
  z-index: 10;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}


/* Chatbot Header */
.chatbot-header {
  background: var(--red);
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chatbot-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.chatbot-title p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Chatbot Messages */
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 5;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  position: relative;
  z-index: 6;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.assistant {
  align-self: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: var(--red);
  color: #fff;
}

.message.assistant .message-avatar {
  background: #e2e8f0;
  color: #64748b;
}

.message-content {
  background: #fff;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 7;
  min-height: 20px;
}

.message.user .message-content {
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
  border-bottom-left-radius: 4px;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
  color: #333;
  position: relative;
  z-index: 8;
}

/* Chatbot Input */
.chatbot-input-container {
  padding: 20px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.chatbot-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

#chatbot-input {
  flex: 1;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  min-height: 20px;
  max-height: 100px;
  font-family: inherit;
}

#chatbot-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.chatbot-send {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chatbot-send:hover:not(:disabled) {
  background: #e63946;
  transform: translateY(-1px);
}

.chatbot-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Typing Indicator */
.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chatbot-interface {
    height: 450px;
  }
  
  .chatbot-toggle-btn {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .chatbot-toggle-btn .chatbot-text {
    display: none;
  }
  
  .chatbot-toggle-btn .chatbot-icon {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .chatbot-interface {
    height: 400px;
  }
  
  .chatbot-messages {
    padding: 16px;
  }
  
  .chatbot-input-container {
    padding: 16px;
  }
  
  .message {
    max-width: 90%;
  }
}

/* Technology Badges */
.tech-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.tech-badge{
  display:inline-block;
  background:#f0f0f0;
  color:#333;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  border:1px solid #e0e0e0;
}

/* Navigation Active State */
.nav__link--active{
  color:#fff !important;
  position:relative;
}
.nav__link--active::after{
  content:'';
  position:absolute;
  bottom:-4px;
  left:0;
  right:0;
  height:2px;
  background:var(--red);
  border-radius:1px;
}

/* Responsive Design for Projects */
@media (max-width:1024px){
  .projects-grid{
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:20px;
  }
}
@media (max-width:720px){
  .projects-hero{
    min-height:50vh;
    padding:40px 0;
  }
  .projects-hero h1{
    font-size:48px;
  }
  .projects-hero__intro{
    font-size:16px;
  }
  .projects-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  .project-card__media{
    height:200px;
  }
  .filter-btn{
    padding:10px 20px;
    font-size:14px;
  }
  .projects-filter{
    gap:8px;
  }
}

/* Legal links styling for both static and injected footers */
.footer__copy .footer-legal-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
  justify-content: center;
}

.footer__copy .footer-legal-links a {
  color: #8d8d8d;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__copy .footer-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}
