/* ============================================================
   Shared responsive styles for database-driven pages:
   - Premium dynamic header (ds-header) and footer (ds-footer)
   - Portfolio listing (/portfolio)      -> .portfolio-listing-*
   - Portfolio detail  (/portfolio/slug) -> .portfolio-detail-*
   - Service × city pages (dynamic)      -> .service-location-*
   - Blog listing (/blog)                -> .blog-listing-*
   - Blog detail (/blog/slug)            -> .blog-detail-*
   ============================================================ */

/* ---------- Dynamic page shell (ds-page) ---------- */
.ds-page main {
  display: block;
  padding-top: 0;
  overflow: hidden;
}

.ds-page .banner-section {
  position: static;
  width: 100%;
  min-height: 0;
  height: auto;
  transform: none;
  left: auto;
  top: auto;
  padding: 150px 0 56px;
  display: block;
  text-align: center;
}

.ds-page main > section,
.ds-page main > article,
.ds-page main > div {
  position: relative;
  z-index: 1;
}

.ds-page .banner-section h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  overflow-wrap: break-word;
}

.ds-page .banner-section p {
  max-width: 70ch;
  overflow-wrap: break-word;
}

.ds-page .banner-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ds-page .banner-flex .btn {
  white-space: nowrap;
}

.ds-page .service-location-content,
.ds-page .blog-detail-content,
.ds-page .portfolio-detail-content {
  overflow-wrap: break-word;
}

.ds-page .service-location-content *,
.ds-page .blog-detail-content *,
.ds-page .portfolio-detail-content * {
  max-width: 100%;
}

.ds-page .blog-detail-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
}

/* ---------- Premium dynamic header ---------- */
.ds-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  z-index: 100000;
  background: rgba(10, 14, 18, 0.72);
  background-image: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ds-header.ds-scrolled {
  background: rgba(10, 14, 18, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.ds-header-inner {
  max-width: 1280px;
  width: 92%;
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ds-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.ds-brand img {
  width: 150px;
  height: 62px;
  object-fit: contain;
}

.ds-brand em {
  font-style: normal;
  color: var(--color, #339d76);
}

.ds-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ds-nav > a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.ds-nav > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color, #339d76);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.ds-nav > a:hover {
  color: #fff;
}

.ds-nav > a:focus-visible,
.ds-dropbtn:focus-visible,
.ds-cta:focus-visible,
.ds-burger:focus-visible,
.ds-mobile-inner a:focus-visible,
.ds-mobile-dropbtn:focus-visible,
.ds-mobile-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.ds-nav > a:hover::after {
  width: 100%;
}

.ds-dropdown {
  position: relative;
}

.ds-dropbtn {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-family: inherit;
  transition: color 0.25s ease;
}

.ds-dropbtn:hover {
  color: #fff;
}

.ds-dropbtn i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.ds-dropdown.ds-open .ds-dropbtn i {
  transform: rotate(180deg);
}

.ds-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0f151b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 720px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.ds-dropdown.ds-open .ds-dropdown-menu {
  display: grid;
  animation: dpDropIn 0.22s ease;
}

@keyframes dpDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.ds-drop-col h6 {
  color: var(--color, #339d76);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ds-drop-col a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ds-drop-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.ds-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ds-cta {
  background: var(--color, #339d76);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ds-cta:hover {
  background: #2c8a68;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(51, 157, 118, 0.45);
}

.ds-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
}

.ds-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ds-burger.ds-active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.ds-burger.ds-active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Premium dynamic footer ---------- */
.ds-footer {
  background: linear-gradient(160deg, #0a121a 0%, #0f2027 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
}

.ds-footer-inner {
  max-width: 1280px;
  width: 92%;
  margin: 0 auto;
  padding: 56px 0 0;
}

.ds-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}

.ds-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}

.ds-footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ds-footer-brand em {
  font-style: normal;
  color: var(--color, #339d76);
}

.ds-footer-about p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 340px;
}

.ds-footer-social {
  display: flex;
  gap: 10px;
}

.ds-footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.ds-footer-social a:hover {
  background: var(--color, #339d76);
  border-color: var(--color, #339d76);
  color: #fff;
  transform: translateY(-3px);
}

.ds-footer-col h5 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.ds-footer-col h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--color, #339d76);
  border-radius: 2px;
}

.ds-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ds-footer-col ul li {
  margin-bottom: 11px;
}

.ds-footer-col ul li a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.ds-footer-col ul li a:hover {
  color: var(--color, #339d76);
  padding-left: 5px;
}

.ds-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14.5px;
}

.ds-footer-contact li i {
  color: var(--color, #339d76);
  margin-top: 4px;
}

.ds-footer-contact li a,
.ds-footer-contact li span {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.ds-footer-contact li a:hover {
  color: var(--color, #339d76);
}

.ds-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ds-footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
  margin: 0;
}

.ds-footer-bottom-links {
  display: flex;
  gap: 22px;
}

.ds-footer-bottom-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.ds-footer-bottom-links a:hover {
  color: var(--color, #339d76);
}

/* ---------- Blog listing ---------- */
.blog-listing-section {
  width: 100%;
  padding: 4% 0;
  position: relative;
  z-index: 1;
}

.blog-listing-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(51, 157, 118, 0.45);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0c0c;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background:
    radial-gradient(circle at 75% 20%, rgba(51, 157, 118, 0.3), transparent 38%),
    linear-gradient(135deg, #10211f, #101820 60%, #132a29);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.blog-card-placeholder span:first-child {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-card-placeholder i {
  color: var(--color, #339d76);
  font-size: 34px;
}

.blog-card-placeholder span:last-child {
  font-size: 14px;
}

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-card-category {
  padding: 4px 14px;
  background: var(--color, #339d76);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.blog-card-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.blog-card-title {
  font-size: 20px;
  margin: 0;
  line-height: 1.35;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--color, #339d76);
}

.blog-card-excerpt {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.blog-card-link {
  margin-top: auto;
  color: var(--color, #339d76);
  font-weight: 700;
  text-decoration: none;
}

.blog-card-link:hover {
  color: #fff;
}

.blog-pagination {
  max-width: 1200px;
  margin: 30px auto 0;
  width: 90%;
  display: flex;
  justify-content: center;
}

.blog-pagination .pagination .page-link {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.blog-pagination .pagination .page-item.active .page-link {
  background: var(--color, #339d76);
  border-color: var(--color, #339d76);
  color: #fff;
}

/* ---------- Blog detail ---------- */
.blog-detail-section {
  width: 100%;
  padding: 4% 0;
  position: relative;
  z-index: 1;
}

.blog-detail-container {
  max-width: 860px;
  width: 90%;
  margin: 0 auto;
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.blog-detail-img {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
}

.blog-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-detail-content {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 16px;
}

.blog-detail-content h2,
.blog-detail-content h3 {
  color: #fff;
  margin-top: 28px;
}

.blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.blog-detail-content a {
  color: var(--color, #339d76);
}

.blog-detail-content blockquote {
  border-left: 4px solid var(--color, #339d76);
  padding-left: 18px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
}

.blog-detail-content :where(p, ul, ol) {
  margin-bottom: 1.15em;
}

.blog-detail-content li + li {
  margin-top: 0.45em;
}

.blog-detail-content pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.blog-detail-footer {
  margin-top: 32px;
}

/* ---------- Portfolio listing ---------- */
.portfolio-service-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(92%, 1200px);
    margin: 0 auto 32px;
}

.portfolio-service-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(48, 159, 119, .38);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #e7f2ed;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.portfolio-service-tab:hover,
.portfolio-service-tab.is-active { background: #309f77; border-color: #309f77; color: #fff; }
.portfolio-service-tab span { font-size: 12px; opacity: .8; }

.portfolio-listing-section {
    width: 100%;
    padding: 4% 0;
    position: relative;
    z-index: 1;
}

.portfolio-listing-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(51, 157, 118, 0.45);
}

.portfolio-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0c0c0c;
}

.portfolio-card-img img,
.portfolio-card-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.portfolio-card-category {
    align-self: flex-start;
    padding: 4px 14px;
    background: var(--color, #339d76);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.portfolio-card-title {
    font-size: 20px;
    margin: 0;
    line-height: 1.3;
}

.portfolio-card-title a {
    color: inherit;
    text-decoration: none;
}

.portfolio-card-excerpt {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.portfolio-card-link {
    margin-top: auto;
    color: var(--color, #339d76);
    font-weight: 700;
    text-decoration: none;
}

.portfolio-card-link:hover {
    color: #fff;
}

.portfolio-pagination {
    max-width: 1200px;
    margin: 30px auto 0;
    width: 90%;
    display: flex;
    justify-content: center;
}

.portfolio-pagination .pagination .page-link {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.portfolio-pagination .pagination .page-item.active .page-link {
    background: var(--color, #339d76);
    border-color: var(--color, #339d76);
    color: #fff;
}

/* ---------- Portfolio detail ---------- */
.portfolio-detail-section {
    width: 100%;
    padding: 4% 0;
    position: relative;
    z-index: 1;
}

.portfolio-detail-container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}

.portfolio-detail-container img.portfolio-hero,
.portfolio-detail-img {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
}

.portfolio-detail-img img {
    width: 100%;
    height: auto;
    display: block;
}
.portfolio-detail-img video { display: block; width: 100%; max-height: 75vh; background: #080c0b; }

.portfolio-detail-footer {
    margin-top: 28px;
}

.portfolio-detail-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 16px;
}

.portfolio-detail-content h2 {
    color: #fff;
}

.portfolio-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.portfolio-detail-meta .badge {
    background: var(--color, #339d76);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.portfolio-detail-cta {
    margin-top: 28px;
}

/* ---------- Service × city pages ---------- */
.service-location-section {
    width: 100%;
    padding: 4% 0;
    position: relative;
    z-index: 1;
}

.service-location-container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

.service-location-img {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 24px;
    overflow: hidden;
}

.service-location-img img {
    width: 100%;
    height: auto;
    display: block;
}

.service-location-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 16px;
}

.service-location-content .lead-intro {
    font-size: 18px;
    color: #fff;
}

.service-location-content h2,
.service-location-content h3 {
    color: var(--color, #339d76);
    margin-top: 28px;
}

.service-location-content ul,
.service-location-content ol {
    padding-left: 22px;
}

.service-location-content li {
    margin-bottom: 8px;
}

.service-location-cities {
    margin-top: 40px;
}

.service-location-cities h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 16px;
}

.city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.city-link:hover {
    background: var(--color, #339d76);
    border-color: var(--color, #339d76);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ds-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #0d1319;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 90px 26px 30px;
    transition: right 0.3s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .ds-nav.ds-open {
    right: 0;
  }

  .ds-nav > a {
    width: 100%;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 16px;
  }

  .ds-nav > a::after {
    display: none;
  }

  .ds-dropdown {
    width: 100%;
  }

  .ds-dropbtn {
    width: 100%;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 16px;
  }

  .ds-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0 12px 16px;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: none;
  }

  .ds-dropdown.ds-open .ds-dropdown-menu {
    display: block;
    animation: none;
  }

  .ds-drop-col h6 {
    margin: 12px 0 6px;
  }

  .ds-burger {
    display: flex;
  }

  .ds-cta {
    padding: 9px 16px;
    font-size: 13px;
  }

  .ds-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .ds-footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
    .portfolio-service-tabs { gap: 8px; margin-bottom: 22px; }
    .portfolio-service-tab { min-height: 38px; padding: 8px 12px; font-size: 13px; }
    .portfolio-listing-container,
    .blog-listing-container {
        grid-template-columns: 1fr;
        width: 92%;
        gap: 20px;
    }

    .portfolio-card-content,
    .blog-card-content {
        padding: 16px;
    }

    .portfolio-card-title,
    .blog-card-title {
        font-size: 18px;
    }

    .service-location-container,
    .portfolio-detail-container,
    .blog-detail-container {
        width: 92%;
    }

    .service-location-content .lead-intro {
        font-size: 16px;
    }

    .city-links {
        gap: 8px;
    }

    .city-link {
        font-size: 13px;
        padding: 7px 13px;
    }

    .banner-flex {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

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

    .ds-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-listing-container,
    .blog-listing-container,
    .service-location-container,
    .portfolio-detail-container,
    .blog-detail-container {
        width: 94%;
    }

    .city-link {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Mobile overlay menu + fixed header compensation ---------- */
body.site-premium.ds-page { padding-top: 0; }
body.site-premium { padding-top: 80px; }
.ds-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(5, 10, 14, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  font-family: inherit;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.ds-mobile-menu.ds-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.ds-mobile-inner {
  position: relative;
  width: min(88vw, 360px);
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin-left: auto;
  padding: 72px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #0a121a;
  border-left: 1px solid rgba(255,255,255,0.06);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.ds-mobile-menu.ds-open .ds-mobile-inner {
  transform: translateX(0);
}
.ds-mobile-inner a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ds-mobile-inner a:hover { color: #fff; }
.ds-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.ds-mobile-close i { font-size: 20px; }
.ds-mobile-dropdown { width: 100%; }
.ds-mobile-dropbtn {
  width: 100%;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  text-align: left;
}
.ds-mobile-dropbtn i { font-size: 11px; transition: transform 0.2s ease; }
.ds-mobile-dropdown-menu {
  display: none;
  padding-left: 16px;
  margin-top: 6px;
  border-left: 1px solid rgba(255,255,255,0.04);
}
.ds-mobile-dropdown-menu.ds-open { display: block; }
.ds-mobile-dropdown-menu a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 0;
  color: rgba(255,255,255,0.7);
}
.ds-mobile-dropdown-menu a:hover { color: #fff; padding-left: 4px; }
.ds-mobile-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ds-mobile-cta {
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
}

.ds-floating-actions {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: 24px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ds-floating-actions a {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 23px;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ds-floating-actions a:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.34);
}
.ds-floating-call { background: #238a62; }
.ds-floating-whatsapp { background: #25d366; }
.site-form-status {
  margin: 12px 0 0;
  color: #237b55;
  font-weight: 600;
}
.site-form-status.is-error { color: #b42318; }

.ds-page .banner-section {
  padding-top: 132px;
}
/* Desktop dropdown stays hidden on mobile; burger/cta adjustments */
@media (max-width: 991px) {
  .ds-nav { display: none; }
  .ds-burger { display: flex; }
  .ds-brand span { display: none; }
  .ds-brand img { width: 150px; height: 62px; }
  .ds-cta { padding: 9px 16px; font-size: 13px; }
  .ds-dropdown-menu { display: none !important; }
  .ds-dropbtn i { display: none; }
  .ds-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ds-footer-about { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-mobile-menu,
  .ds-mobile-inner { transition: none; }
}

@media (max-width: 420px) {
  .ds-header-inner {
    gap: 8px;
  }

  .ds-brand {
    gap: 6px;
    font-size: 14px;
  }

  .ds-brand img {
    width: 150px;
    height: 62px;
  }

  .ds-header-actions {
    gap: 8px;
  }

  .ds-header-actions > .ds-cta {
    display: none;
  }

  .ds-mobile-menu .ds-mobile-cta {
    display: inline-block;
  }

  .ds-page .banner-section {
    padding: 116px 0 40px;
  }
}

@media (max-width: 991.98px) {
  .mobile-social-icons {
    display: none !important;
  }

  .ds-floating-actions {
    display: none !important;
  }
}

.ds-floating-actions.is-scroll-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

