﻿:root {
  --cream: #f4efd8;
  --beige: #ead9bd;
  --sand: #d9b98f;
  --brown: #7a3f22;
  --dark: #21120d;
  --muted: #6e5a4a;
  --glass: rgba(255, 248, 229, 0.62);
  --line: rgba(92, 50, 26, 0.18);
  --shadow: 0 30px 90px rgba(65, 34, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% 8%, rgba(151, 86, 49, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.55), transparent 28rem),
    linear-gradient(135deg, #f6f0d7 0%, #ead8ba 45%, #c99c68 100%);
  color: var(--dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background-image:
    linear-gradient(rgba(88, 49, 26, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 49, 26, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  text-decoration: none;
}

.hp-field {
  height: 0;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.nav-shell,
.glass-panel {
  backdrop-filter: blur(22px) saturate(135%);
  background: linear-gradient(145deg, rgba(255, 250, 232, 0.74), rgba(213, 181, 139, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 20px 70px rgba(65, 34, 19, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-panel {
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 90px rgba(65, 34, 19, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.nav-shell {
  border-radius: 999px;
}

.nav-brand {
  min-width: 0;
}

.logo-frame {
  align-items: center;
  background: linear-gradient(145deg, #fffaf0, #f4dfbd);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(65, 34, 19, 0.15);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  width: 48px;
}

.logo-frame img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
  width: 100%;
}

.nav-brand-text {
  background: linear-gradient(100deg, #2b160d 0%, #ac5a31 34%, #d1a06e 58%, #523211 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(65, 34, 19, 0.16);
  white-space: nowrap;
}

.nav-links a {
  border-radius: 999px;
  color: #3c2417;
  font-weight: 800;
  padding: 10px 14px;
  position: relative;
  transition: 0.25s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(122, 63, 34, 0.12);
  color: var(--brown);
}

.nav-links a.active::after {
  background: var(--brown);
  border-radius: 999px;
  bottom: 5px;
  content: "";
  height: 3px;
  left: 18px;
  position: absolute;
  right: 18px;
}

.nav-cta {
  background: linear-gradient(135deg, #2b160d, #7a3f22) !important;
  color: #fff !important;
}

.nav-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 44px;
  width: 44px;
}

.nav-toggle span {
  background: var(--dark);
  border-radius: 999px;
  display: block;
  height: 2px;
  margin: 5px auto;
  width: 19px;
}

.hero-section {
  display: flex;
  position: relative;
}



.hero-frame {
  position: relative;
  z-index: 1;
}

.rotator-column {
  align-items: center;
  display: flex;
  min-height: 620px;
  justify-content: center;
  position: relative;
  transform: translateX(-58px);
}

.vertical-line {
  background: linear-gradient(180deg, transparent, rgba(82, 47, 25, 0.35), transparent);
  height: 86%;
  position: absolute;
  width: 2px;
  
}

.rotating-badge {
  align-items: center;
  background: linear-gradient(135deg, #f5dccb, #f8ead2);
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: #111;
  display: inline-flex;
  height: 148px;
  justify-content: center;
  position: relative;
  width: 148px;
  z-index: 1;
  padding-left: 0.10%;
}

.rotating-badge svg {
  animation: rotateText 13s linear infinite;
  inset: 10px;
  position: absolute;
}

.rotating-badge text {
  fill: #21120d;
  font-size: 16px;
  font-weight: 700;
}

.rotating-badge span img{ 
 position:relative;
 padding: 25px;

}

.hero-title-wrap {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 138px;
  max-width: 980px;
}

.hero-title-wrap > .mini-label,
.hero-title-wrap > .hero-after {
  grid-column: 1 / -1;
}

.hero-after {
  display: contents;
}

.hero-title-wrap .hero-banner {
  grid-column: 1;
  grid-row: 2;
}

.hero-after .hero-meta-row {
  grid-column: 2;
  grid-row: 2;
 
}

.hero-after .hero-copy,
.hero-after .hero-actions {
  grid-column: 1;
}

.hero-title-wrap .hero-copy {
  justify-self: center;
  text-align: center;
}

.hero-title-wrap .hero-actions {
  justify-content: center;
}

.hero-title-wrap .hero-actions .pill-btn {
  min-width: 210px;
}

.hero-title {
  color: #c23e30;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: 0;
  line-height: 0.78;
  overflow: hidden;
  min-height: 2em;
  width: 100%;
}

.hero-title span,
.hero-title small {
  display: block;
  filter: drop-shadow(0 18px 28px rgba(111, 45, 27, 0.16));
  overflow: hidden;
  position: relative;
}

.hero-title small {
  animation-delay: 0s;
}

.hero-title span::after,
.hero-title small::after {
  color: rgba(122, 63, 34, 0.16);
  content: attr(data-text);
  left: 0.035em;
  position: absolute;
  top: 0.035em;
  z-index: -1;
}

.hero-title span {
  font-size: clamp(4.7rem, 12vw, 10.8rem);
}

.hero-title small {
  font-size: clamp(2.55rem, 6.5vw, 5.8rem);
  margin-left: 0.035em;
}

.hero-banner {
  aspect-ratio: 16 / 8.6;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(79, 43, 25, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  max-width: min(760px, 100%);
  overflow: hidden;
  /* position: relative; */
  transform: perspective(1100px) rotateX(var(--banner-rx, 0deg)) rotateY(var(--banner-ry, 0deg));
  transition: box-shadow 0.28s ease, transform 0.18s ease;
}

.hero-banner::before {
  background: radial-gradient(circle at var(--banner-x, 50%) var(--banner-y, 50%), rgba(255, 236, 197, 0.42), transparent 34%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.hero-banner::after {
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.48), transparent 78%);
  content: "";
  height: 140%;
  left: -120%;
  pointer-events: none;
  position: absolute;
  top: -20%;
  transform: rotate(10deg);
  transition: left 0.75s ease;
  width: 60%;
  z-index: 2;
}

.hero-banner:hover {
  box-shadow: 0 44px 120px rgba(79, 43, 25, 0.32), 0 0 42px rgba(206, 139, 74, 0.24);
}

.hero-banner:hover::before {
  opacity: 1;
}

.hero-banner:hover::after {
  left: 130%;
}

.hero-banner img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand-scroll-stage {
  min-height: 160vh;
  position: relative;
}

.about-scroll-heading {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin-bottom: 0;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  position: sticky;
  top: 0;
  text-align: center;
  width: 100vw !important;
}

.scroll-brand-title {
  --scroll-title-size: 1rem;
  color: #c23e30;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: 0;
  line-height: 0.78;
  margin-inline: auto;
  opacity: var(--scroll-title-opacity, 1);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  min-height: 2em;
  text-align: center;
  width: 100%;
}

.scroll-brand-title span,
.scroll-brand-title small {
  display: block;
  position: relative;
  text-shadow:
    0 0.055em 0 rgba(155, 87, 53, 0.16),
    0 0.12em 0.22em rgba(92, 50, 26, 0.18);
}

.scroll-brand-title span {
  font-size: var(--scroll-title-size);
  white-space: nowrap;
}

.scroll-brand-title small {
  font-size: calc(var(--scroll-title-size) * 0.62);
  margin-left: 0.035em;
  white-space: nowrap;
}

.scroll-brand-title span::after,
.scroll-brand-title small::after {
  content: none;
}

@keyframes heroTextRise {
  0% {
    transform: translateY(115%) scaleY(1.15);
  }

  100% {
    transform: translateY(0) scaleY(1);
  }
}

@keyframes talkLoop {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes heroCardFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.mini-label {
  align-items: center;
  color: var(--brown);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 950;
  gap: 9px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mini-label::before {
  background: var(--brown);
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.hero-meta-row {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 0;
  padding: 0px;
}

.hero-stat {
  animation: heroCardFloat 5.5s ease-in-out infinite;
  border-radius: 14px;
  overflow: hidden;
  min-height: 92px;
  padding: 9px 10px;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-stat:nth-child(1) {
  transform: translateX(-16px);
}

.hero-stat:nth-child(3) {
  transform: translateX(16px);
}

.hero-stat::after,
.hero-talk::after {
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  content: "";
  height: 140%;
  left: -120%;
  position: absolute;
  top: -20%;
  transform: rotate(10deg);
  transition: left 0.65s ease;
  width: 70%;
}

.hero-stat:hover {
  animation-play-state: paused;
  box-shadow: 0 24px 60px rgba(65, 34, 19, 0.2);
  transform: translateY(-6px) scale(1.02);
}

.hero-stat:hover::after,
.hero-talk:hover::after {
  left: 130%;
}

.hero-stat strong {
  color: #c23e30;
  display: block;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  display: block;
  font-size: 1.64rem;
  font-weight: 750;
  margin-top: 7px;
}

.hero-talk {
  align-items: center;
  animation: heroCardFloat 5.5s ease-in-out infinite 0.35s;
  background: #c23e30;
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(194, 62, 48, 0.24);
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  font-weight: 950;
  justify-content: center;
  line-height: 1.05;
  min-height: 10px;
  overflow: hidden;
  padding: 9px 10px;
  position: relative;
  text-transform: uppercase;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-talk:hover {
  animation-play-state: paused;
  box-shadow: 0 26px 64px rgba(194, 62, 48, 0.3);
  transform: translateY(-6px) scale(1.02);
}

.hero-talk span {
  animation: talkLoop 2.8s ease-in-out infinite;
  display: block;
  font-size: 0.68rem;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(0.94rem, 1.12vw, 1.04rem);
  margin-top: 18px;
  max-width: min(610px, 100%);
  min-height: 3.4em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 18px;
}

.pill-btn {
  align-items: center;
  background: rgba(255, 248, 229, 0.66);
  border: 1px solid rgba(95, 54, 31, 0.2);
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(65, 34, 19, 0.12);
  color: var(--dark);
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 44px;
  overflow: hidden;
  padding: 11px 19px;
  position: relative;
  transition: 0.25s ease;
}

.pill-btn.primary {
  background: #c23e30;
  color: #fff;
}

.pill-btn:hover {
  transform: translateY(-3px);
}

.section-space {
  padding: 110px 0;
}

.section-title {
  color: #2b160d;
  font-size: clamp(3.6rem, 5vw, 5.5rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.95;
  padding-bottom:60px ;
}

.image-slice-stage {
  border-radius: 30px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(10, 1fr);
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
}

.image-slice-stage::before {
  background: linear-gradient(135deg, rgba(255, 248, 229, 0.18), transparent 34%, rgba(43, 22, 13, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.image-slice {
  background-image: url("assets/about-landscape-2.png");
  background-repeat: no-repeat;
  background-size: 1000% 100%;
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.2);
  min-height: 100%;
  opacity: 0;
  transform: translateX(-120px) translateY(28px) rotateY(-28deg) scale(0.94);
  transform-origin: left center;
  transition: opacity 0.8s ease, transform 1s cubic-bezier(.2,.8,.2,1), filter 1s ease;
}

.image-slice-stage.assembled .image-slice {
  filter: saturate(1.03) contrast(1.02);
  opacity: 1;
  transform: translateX(0) translateY(0) rotateY(0) scale(1);
}

.slice-1 { background-position: 0% 50%; transition-delay: 0s; }
.slice-2 { background-position: 11.111% 50%; transition-delay: 0.08s; }
.slice-3 { background-position: 22.222% 50%; transition-delay: 0.16s; }
.slice-4 { background-position: 33.333% 50%; transition-delay: 0.24s; }
.slice-5 { background-position: 44.444% 50%; transition-delay: 0.32s; }
.slice-6 { background-position: 55.555% 50%; transition-delay: 0.4s; }
.slice-7 { background-position: 66.666% 50%; transition-delay: 0.48s; }
.slice-8 { background-position: 77.777% 50%; transition-delay: 0.56s; }
.slice-9 { background-position: 88.888% 50%; transition-delay: 0.64s; }
.slice-10 { background-position: 100% 50%; transition-delay: 0.72s; }

.about-copy {
  border-radius: 28px;
  height: 100%;
  min-height: 620px;
  padding: 34px;
  transform: translateX(90px);
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}

.about-copy.visible {
  transform: translateX(0);
}

.about-copy:hover {
  box-shadow: 0 35px 100px rgba(65, 34, 19, 0.24);
  transform: translateX(0) rotateX(2deg) rotateY(-2deg);
}

.about-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.about-copy p {
  color: var(--muted);
  margin-top: 18px;
}

.service-stage {
  overflow: hidden;
}

.falling-services {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  perspective: 1200px;
}

.service-card,
.portfolio-card,
.price-card {
  backdrop-filter: blur(18px) saturate(140%);
  background:
    radial-gradient(circle at var(--mx, 80%) var(--my, 10%), rgba(255, 255, 255, 0.55), transparent 34%),
    linear-gradient(145deg, rgba(255, 248, 229, 0.7), rgba(164, 102, 62, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  box-shadow: var(--shadow);
  min-height: 270px;
  opacity: 0;
  padding: 28px;
  position: relative;
  transform: translateY(-180px) rotate(-8deg);
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), opacity 0.8s ease, box-shadow 0.25s ease;
}

.falling-services.active .service-card {
  animation: serviceRubberLand 2s cubic-bezier(.16, 1, .3, 1) forwards;
  opacity: 1;
}

.falling-services.active .service-card:nth-child(1) {
  --from-x: -115vw;
  --from-y: -90vh;
  --from-rotate: -28deg;
  animation-delay: 0s;
}

.falling-services.active .service-card:nth-child(2) {
  --from-x: 0;
  --from-y: -115vh;
  --from-rotate: 18deg;
  animation-delay: 0.08s;
}

.falling-services.active .service-card:nth-child(3) {
  --from-x: 115vw;
  --from-y: -85vh;
  --from-rotate: 28deg;
  animation-delay: 0.16s;
}

.falling-services.active .service-card:nth-child(4) {
  --from-x: -105vw;
  --from-y: 85vh;
  --from-rotate: 22deg;
  animation-delay: 0.24s;
}

.falling-services.active .service-card:nth-child(5) {
  --from-x: 0;
  --from-y: 115vh;
  --from-rotate: -18deg;
  animation-delay: 0.32s;
}

.falling-services.active .service-card:nth-child(6) {
  --from-x: 105vw;
  --from-y: 85vh;
  --from-rotate: -24deg;
  animation-delay: 0.4s;
}

@keyframes serviceRubberLand {
  0% {
    opacity: 0;
    transform: translate(var(--from-x), var(--from-y)) rotate(var(--from-rotate)) scale(0.54, 0.72);
  }

  42% {
    opacity: 1;
    transform: translate(0, 40px) rotate(0) scale(0.82, 0.58);
  }

  56% {
    transform: translate(0, -18px) rotate(0) scale(0.72, 0.9);
  }

  70% {
    transform: translate(0, 10px) rotate(0) scale(1.04, 0.92);
  }

  82% {
    transform: translate(0, -4px) rotate(0) scale(0.98, 1.03);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }

}

.service-card:hover,
.portfolio-card:hover,
.price-card:hover {
  box-shadow: 0 36px 100px rgba(65, 34, 19, 0.25);
}

.service-icon {
  align-items: center;
  background: linear-gradient(135deg, #2b160d, #7a3f22, #d1a06e);
  border-radius: 18px;
  color: #fff;
  display: inline-flex;
  font-size: 1.55rem;
  font-weight: 950;
  height: 58px;
  justify-content: center;
  margin-bottom: 28px;
  transition: transform 0.25s ease;
  width: 58px;
}

.service-card:hover .service-icon {
  transform: rotate(12deg) scale(1.08);
}

.service-icon svg {
  height: 30px;
  width: 30px;
}

.service-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.service-icon svg circle {
  fill: currentColor;
  stroke: none;
}
.service-card h3,
.portfolio-card h3,
.price-card h3 {
  font-size: 1.55rem;
  font-weight: 950;
}

.service-card p,
.portfolio-card p,
.price-card li {
  color: var(--muted);
  margin-top: 12px;
}

.service-card button,
.price-card button {
  background: rgba(43, 22, 13, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  margin-top: 22px;
  padding: 10px 15px;
}

.portfolio-card {
  min-height: 360px;
}

.portfolio-card div {
  background: linear-gradient(135deg, #2b160d, #8a4d2d, #ead9bd);
  border-radius: 22px;
  height: 190px;
  margin-bottom: 24px;
}

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

.project-card {
  backdrop-filter: blur(18px) saturate(145%);
  background:
    radial-gradient(circle at var(--mx, 70%) var(--my, 10%), rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(145deg, rgba(255, 248, 229, 0.78), rgba(171, 106, 63, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(65, 34, 19, 0.13);
  min-height: 440px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card::before {
  background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.5), transparent 42%);
  content: "";
  height: 150%;
  left: -90%;
  pointer-events: none;
  position: absolute;
  top: -25%;
  transform: rotate(9deg);
  transition: left 0.65s ease;
  width: 58%;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 36px 105px rgba(65, 34, 19, 0.23);
  transform: translateY(-8px);
}

.project-card:hover::before {
  left: 118%;
}

.project-preview {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 22px 60px rgba(65, 34, 19, 0.15);
  height: 175px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}

.project-preview::before,
.project-preview::after {
  content: "";
  position: absolute;
}

.project-preview::before {
  background: rgba(255, 248, 229, 0.72);
  border-radius: 18px;
  bottom: 18px;
  left: 18px;
  right: 18px;
  top: 18px;
}

.project-preview::after {
  background:
    linear-gradient(90deg, #2b160d 0 28%, transparent 28% 100%),
    repeating-linear-gradient(180deg, rgba(122, 63, 34, 0.34) 0 8px, transparent 8px 18px);
  border-radius: 12px;
  bottom: 34px;
  left: 34px;
  right: 34px;
  top: 34px;
}

.preview-business { background: linear-gradient(135deg, #2b160d, #96502d, #ead9bd); }
.preview-restaurant { background: linear-gradient(135deg, #4a1f13, #bd7650, #f0d8b6); }
.preview-medical { background: linear-gradient(135deg, #233028, #8a6b46, #f2e7cc); }
.preview-education { background: linear-gradient(135deg, #321b12, #a2633c, #ffe7bc); }
.preview-app { background: linear-gradient(135deg, #21120d, #7a3f22, #d1a06e); }
.preview-store { background: linear-gradient(135deg, #5a2b18, #c78a5d, #fff1d1); }

.project-meta,
.project-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.project-meta span {
  background: rgba(43, 22, 13, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  font-size: 0.76rem;
  font-weight: 950;
  padding: 7px 10px;
}

.project-card h3 {
  font-size: 1.45rem;
  font-weight: 950;
  margin-top: 16px;
}

.project-card p {
  color: var(--muted);
  margin-top: 10px;
}

.project-card ul {
  color: #6e5a4a;
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.project-card li::before {
  color: var(--red);
  content: "+";
  font-weight: 950;
  margin-right: 8px;
}

.project-actions {
  margin-top: 20px;
}

.project-actions button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
  padding: 10px 14px;
}

.project-actions button:first-child {
  background: #2b160d;
  color: #fff;
}

.project-actions button:last-child {
  background: rgba(255, 248, 229, 0.72);
  border: 1px solid var(--line);
  color: var(--brown);
}

.pricing-head {
  margin-inline: auto;
  max-width: 920px;
}

.pricing-head p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 16px;
}

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

.pricing-grid.pricing-animate .price-card:nth-child(1) {
  animation: bounceInLeft 1.05s both;
}

.pricing-grid.pricing-animate .price-card:nth-child(2) {
  animation: bounceInDown 1.05s 0.12s both;
}

.pricing-grid.pricing-animate .price-card:nth-child(3) {
  animation: bounceInRight 1.05s 0.24s both;
}

@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-90px, 0, 0) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translate3d(16px, 0, 0) scale(1.02);
  }
  78% {
    transform: translate3d(-8px, 0, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -90px, 0) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 16px, 0) scale(1.02);
  }
  78% {
    transform: translate3d(0, -8px, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes bounceInRight {
  0% {
    opacity: 0;
    transform: translate3d(90px, 0, 0) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translate3d(-16px, 0, 0) scale(1.02);
  }
  78% {
    transform: translate3d(8px, 0, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.price-card {
  min-height: 520px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.price-card::before {
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.48), transparent 42%);
  content: "";
  height: 150%;
  left: -96%;
  pointer-events: none;
  position: absolute;
  top: -25%;
  transform: rotate(10deg);
  transition: left 0.7s ease;
  width: 60%;
}

.price-card::after {
  background: radial-gradient(circle, rgba(209, 160, 110, 0.28), transparent 62%);
  bottom: -80px;
  content: "";
  height: 170px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: -70px;
  transition: opacity 0.28s ease, transform 0.28s ease;
  width: 170px;
}

.price-card:hover::before {
  left: 118%;
}

.price-card:hover {
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 38px 105px rgba(65, 34, 19, 0.24);
  transform: translateY(-8px);
}

.price-card:hover::after {
  opacity: 1;
  transform: scale(1.15);
}

.price-card.featured {
  color: #fff;
  transform: translateY(-18px);
}

.price-card.featured:hover {
  transform: translateY(-26px) scale(1.01);
}

.popular-sparkle-layer,
.hero-sparkle-layer {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.popular-sparkle {
  --sparkle-color: #ffe8a3;
  --sparkle-dx: 0px;
  --sparkle-dy: -22px;
  animation: popularSparklePop 760ms ease-out forwards;
  color: var(--sparkle-color);
  height: var(--sparkle-size, 9px);
  left: var(--sparkle-x, 50%);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: var(--sparkle-y, 50%);
  transform: translate(-50%, -50%);
  width: var(--sparkle-size, 9px);
}

.popular-sparkle.star::before,
.popular-sparkle.star::after {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
  content: "";
  inset: 44% 0;
  position: absolute;
}

.popular-sparkle.star::after {
  transform: rotate(90deg);
}

.popular-sparkle.dot {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.popular-sparkle.ring {
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

@keyframes popularSparklePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--sparkle-dx)), calc(-50% + var(--sparkle-dy))) scale(1.5) rotate(100deg);
  }
}

.price-card.featured {
  background: linear-gradient(145deg, rgba(43, 22, 13, 0.94), rgba(122, 63, 34, 0.86), rgba(209, 160, 110, 0.68));
  border-color: rgba(255, 230, 190, 0.72);
  box-shadow: 0 34px 100px rgba(122, 63, 34, 0.32);
}

.price-card.featured li,
.price-card.featured strong,
.price-card.featured .best-for,
.price-card.featured .package-note {
  color: #fff;
}

.price-card.featured button {
  background: #fff4df;
  color: #2b160d;
}

.price-card.featured > span {
  background: rgba(255, 248, 229, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  margin-bottom: 12px;
  padding: 8px 12px;
}

.package-label {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.price-card.featured .package-label {
  color: #ffe8bf;
}

.price-card strong {
  color: var(--brown);
  display: block;
  font-size: clamp(1.16rem, 1.55vw, 1.75rem);
  margin: 12px 0;
}

.price-count::before {
  content: "\20B9";
}

.best-for,
.package-note {
  color: var(--muted);
  margin: 0 0 12px;
}

.package-note {
  background: rgba(255, 248, 229, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 16px;
  font-size: 0.86rem;
  margin-top: 10px;
  padding: 10px;
}

.price-card ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-card li {
  font-size: 0.93rem;
  line-height: 1.35;
}

.price-card button {
  position: relative;
  z-index: 1;
}

.price-card li::before {
  content: "+";
  font-weight: 950;
  margin-right: 8px;
}

.comparison-card,
.estimator-card {
  margin-top: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.comparison-card:hover,
.estimator-card:hover {
  transform: translateY(-5px);
}

.comparison-card h3,
.addons-block h3,
.estimator-card h3 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 950;
}

.comparison-scroll {
  margin-top: 18px;
  overflow-x: visible;
}

.comparison-card table {
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.comparison-card th,
.comparison-card td {
  border-bottom: 1px solid rgba(122, 63, 34, 0.14);
  color: var(--muted);
  padding: 15px;
  text-align: left;
}

.comparison-card th {
  color: #2b160d;
  font-weight: 950;
}

.comparison-card td:not(:first-child) {
  font-weight: 850;
}

.comparison-card tbody tr {
  transition: background 0.22s ease, transform 0.22s ease;
}

.comparison-card tbody tr:hover {
  background: rgba(255, 248, 229, 0.42);
  transform: translateX(4px);
}

.addons-block {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 0.82fr 1.18fr;
  margin-top: 28px;
}

.addons-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.addons-grid span {
  backdrop-filter: blur(16px);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.74), transparent 34%),
    linear-gradient(145deg, rgba(255, 248, 229, 0.7), rgba(164, 102, 62, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(65, 34, 19, 0.1);
  color: var(--brown);
  font-weight: 950;
  overflow: hidden;
  padding: 14px;
  position: relative;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.addons-grid span::before {
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  content: "";
  height: 130%;
  left: -95%;
  pointer-events: none;
  position: absolute;
  top: -15%;
  transform: rotate(12deg);
  transition: left 0.65s ease;
  width: 55%;
}

.addons-grid span:hover {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 75px rgba(65, 34, 19, 0.18);
  color: #2b160d;
  transform: translateY(-6px) scale(1.02);
}

.addons-grid span:hover::before {
  left: 120%;
}

.estimator-card {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 0.8fr 1.2fr auto;
}

.estimator-card p {
  color: var(--muted);
  margin-top: 12px;
}

.estimator-form {
  display: grid;
  column-gap: 52px;
  row-gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estimator-form label {
  color: #2b160d;
  display: grid;
  font-weight: 850;
  gap: 10px;
  min-width: 0;
}

.estimator-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #7a3f22 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 248, 229, 0.94), rgba(232, 202, 160, 0.76));
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #2b160d;
  cursor: pointer;
  font-weight: 850;
  outline: 0;
  padding: 13px 42px 13px 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  width: 100%;
}

.estimator-form select:hover,
.contact-form select:hover {
  background:
    linear-gradient(45deg, transparent 50%, #7a3f22 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 248, 229, 0.94), rgba(232, 202, 160, 0.76));
  border-color: rgba(122, 63, 34, 0.38);
  box-shadow: 0 12px 35px rgba(65, 34, 19, 0.12);
}

.estimator-form select:focus,
.contact-form select:focus {
  background:
    linear-gradient(45deg, transparent 50%, #7a3f22 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 248, 229, 0.94), rgba(232, 202, 160, 0.76));
  border-color: rgba(122, 63, 34, 0.55);
  box-shadow: 0 0 0 4px rgba(122, 63, 34, 0.14), 0 18px 45px rgba(65, 34, 19, 0.14);
}

select option {
  background: #f6dfb8;
  color: #2b160d;
  font-weight: 800;
}

select option:checked {
  background: linear-gradient(135deg, #7a3f22, #c88b57);
  /* color: #fff7e6; */
}

select option:hover,
select option:focus {
  background: #d1a06e;
  color: #2b160d;
}

.estimate-output {
  background: linear-gradient(145deg, #2b160d, #7a3f22);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(65, 34, 19, 0.22);
  color: #fff;
  min-width: 210px;
  padding: 22px;
  text-align: center;
}

.estimate-output span {
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  opacity: 0.82;
}

.estimate-output strong {
  display: block;
  font-size: 2rem;
  font-weight: 950;
  margin-top: 8px;
}

.pricing-trust {
  color: var(--brown);
  font-weight: 950;
  margin-top: 26px;
  text-align: center;
}

.pricing-cta {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.contact-form {
  border-radius: 28px;
  display: grid;
  gap: 16px;
  padding: 30px;
}

.contact-form label {
  color: #2b160d;
  display: grid;
  font-weight: 850;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 250, 232, 0.74);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 14px 15px;
}

.contact-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #7a3f22 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 248, 229, 0.94), rgba(232, 202, 160, 0.76));
  color: #2b160d;
  cursor: pointer;
  font-weight: 850;
  padding-right: 42px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 4px rgba(122, 63, 34, 0.12);
}

.contact-form small {
  color: #a13b25;
  min-height: 18px;
}

.discuss-section {
  position: relative;
}

.discuss-head {
  max-width: 880px;
}

.discuss-head p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 16px;
}

.discuss-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.discuss-aside {
  align-self: start;
  border-radius: 28px;
  padding: 30px;
  position: sticky;
  top: 110px;
}

.discuss-aside h3 {
  font-size: 1.75rem;
  font-weight: 950;
}

.discuss-aside p {
  color: var(--muted);
  margin-top: 12px;
}

.trust-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.trust-grid span {
  background: rgba(255, 248, 229, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  color: #4e392d;
  font-size: 0.86rem;
  font-weight: 850;
  padding: 12px;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.trust-grid span:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 42px rgba(65, 34, 19, 0.14);
  transform: translateY(-4px);
}

.status-tracker {
  background: linear-gradient(145deg, rgba(43, 22, 13, 0.08), rgba(255, 248, 229, 0.52));
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 22px;
  padding: 18px;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.status-tracker:hover {
  border-color: rgba(122, 63, 34, 0.24);
  box-shadow: 0 18px 54px rgba(65, 34, 19, 0.14);
  transform: translateY(-4px);
}

.status-tracker strong {
  display: block;
  margin-bottom: 14px;
}

.status-tracker ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-tracker li {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

.status-tracker li::before {
  align-items: center;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  content: counter(step);
  counter-increment: step;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  height: 26px;
  justify-content: center;
  transition: transform 0.24s ease;
  width: 26px;
}

.status-tracker li:hover::before {
  transform: scale(1.12);
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-drop {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(145deg, rgba(255, 248, 229, 0.76), rgba(164, 102, 62, 0.18));
  border: 1px dashed rgba(122, 63, 34, 0.38);
  border-radius: 22px;
  cursor: pointer;
  padding: 22px;
  position: relative;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.upload-drop:hover,
.upload-drop.drag-over {
  border-color: rgba(194, 62, 48, 0.72);
  box-shadow: 0 24px 70px rgba(65, 34, 19, 0.14);
  transform: translateY(-2px);
}

.upload-drop input {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.upload-drop strong,
.upload-drop span,
.upload-drop small {
  display: block;
  pointer-events: none;
}

.upload-drop span {
  color: var(--muted);
  font-weight: 650;
}

.upload-drop .file-list {
  color: var(--brown);
  font-weight: 850;
  margin-top: 8px;
}

.service-modal,
.project-modal {
  align-items: center;
  background: rgba(33, 18, 13, 0.5);
  backdrop-filter: blur(12px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 100;
}

.service-modal.active,
.project-modal.active {
  display: flex;
}

.inquiry-modal {
  align-items: center;
  background: rgba(33, 18, 13, 0.5);
  backdrop-filter: blur(12px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 120;
}

.inquiry-modal.active {
  display: flex;
}

.inquiry-modal .modal-panel {
  max-height: min(92vh, 760px);
  overflow-y: auto;
}

.modal-panel {
  backdrop-filter: blur(24px) saturate(150%);
  background: linear-gradient(145deg, rgba(255, 248, 229, 0.72), rgba(164, 102, 62, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 32px;
  box-shadow: 0 40px 110px rgba(33, 18, 13, 0.34);
  max-width: 620px;
  padding: 34px;
  position: relative;
  width: 100%;
}

.modal-panel h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 0.95;
}

.modal-panel p {
  color: var(--muted);
  margin: 18px 0 24px;
}

.service-modal .modal-panel {
  max-height: min(92vh, 820px);
  max-width: 860px;
  overflow-y: auto;
}

.service-detail-body {
  margin-top: 18px;
}

.service-detail-body h3 {
  color: var(--brown);
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 14px;
}

.service-detail-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 20px !important;
}

.service-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.25fr 0.75fr;
  margin: 18px 0;
}

.service-detail-grid section,
.service-detail-note {
  background: rgba(255, 248, 229, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
  padding: 18px;
}

.service-detail-grid h4 {
  color: #4b2414;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.service-detail-grid ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-detail-grid li {
  align-items: flex-start;
  color: #5f493c;
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.service-detail-grid li span {
  align-items: center;
  background: linear-gradient(135deg, #5a2b18, #b26f42);
  border-radius: 999px;
  color: #fff8e5;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  margin-top: 1px;
  width: 20px;
}

.service-detail-grid p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 !important;
}

.service-detail-note {
  color: #4b2414 !important;
  font-weight: 850;
  line-height: 1.55;
  margin: 16px 0 24px !important;
}
.project-case-panel {
  max-height: min(92vh, 860px);
  max-width: 1040px;
  overflow-y: auto;
}

.project-case-head {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.project-case-head span {
  background: rgba(43, 22, 13, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  flex: 0 0 auto;
  font-weight: 950;
  padding: 10px 14px;
}

.case-preview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 180px;
  margin: 22px 0;
}

.case-desktop-preview,
.case-mobile-preview {
  background:
    linear-gradient(180deg, rgba(43, 22, 13, 0.82) 0 11%, transparent 11% 100%),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(135deg, var(--case-a, #2b160d), var(--case-b, #a2633c), var(--case-c, #f1ddbd));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 24px 70px rgba(65, 34, 19, 0.16);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.case-image-trigger {
  appearance: none;
  padding: 0;
  width: 100%;
}

.case-image-trigger:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 30px 80px rgba(65, 34, 19, 0.24);
  transform: translateY(-4px);
}

.case-desktop-preview {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(255, 248, 229, 0.07), rgba(255, 248, 229, 0.07)),
    var(--case-image) center / cover no-repeat;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 26px 74px rgba(65, 34, 19, 0.2);
  filter: contrast(1.08) saturate(1.12);
}

.case-mobile-preview {
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(rgba(255, 248, 229, 0.12), rgba(255, 248, 229, 0.12)),
    var(--mobile-case-image) center top / cover no-repeat,
    linear-gradient(145deg, var(--case-a, #2b160d), var(--case-b, #a2633c), var(--case-c, #f1ddbd));
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 26px 74px rgba(65, 34, 19, 0.2);
  filter: contrast(1.08) saturate(1.12);
}

.case-desktop-preview::before,
.case-mobile-preview::before,
.case-desktop-preview::after,
.case-mobile-preview::after {
  content: "";
  position: absolute;
}

.case-desktop-preview::before {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  inset: 0;
}

.case-desktop-preview::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 30%, rgba(43, 22, 13, 0.025));
  border-radius: inherit;
  inset: 0;
}

.case-mobile-preview::before {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  inset: 0;
}

.case-mobile-preview::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%, rgba(43, 22, 13, 0.04));
  border-radius: inherit;
  inset: 0;
}

.image-viewer {
  align-items: center;
  background: rgba(33, 18, 13, 0.68);
  backdrop-filter: blur(16px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 180;
}

.image-viewer.active {
  display: flex;
}

.image-viewer-panel {
  background: linear-gradient(145deg, rgba(255, 248, 229, 0.82), rgba(164, 102, 62, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  box-shadow: 0 40px 110px rgba(33, 18, 13, 0.42);
  max-width: 1180px;
  overflow: hidden;
  width: 100%;
}

.image-viewer-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.image-viewer-toolbar div {
  display: flex;
  gap: 8px;
}

.image-viewer-toolbar button {
  background: #2b160d;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
}

.image-viewer-stage {
  align-items: center;
  background: rgba(43, 22, 13, 0.88);
  cursor: grab;
  display: flex;
  height: min(78vh, 760px);
  justify-content: center;
  overflow: auto;
  padding: 18px;
  touch-action: none;
}

.image-viewer-stage.dragging {
  cursor: grabbing;
}

.image-viewer-stage img {
  max-height: none;
  max-width: none;
  pointer-events: none;
  transform: translate(var(--image-pan-x, 0px), var(--image-pan-y, 0px)) scale(var(--image-zoom, 1));
  transform-origin: center;
  transition: transform 0.22s ease;
  width: min(100%, 1080px);
}

.image-viewer-stage.is-mobile-preview img {
  display: block;
  flex: 0 0 auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.image-viewer-stage.is-mobile-preview {
  overflow: hidden;
}

.site-footer {
  padding-bottom: 28px;
  padding-top: 72px;
  position: relative;
}

.legacy-footer-hidden {
  display: none;
}

.footer-shell {
  background:
    linear-gradient(135deg, rgba(255, 248, 229, 0.76), rgba(166, 101, 62, 0.3)),
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.8), transparent 18rem),
    radial-gradient(circle at 88% 78%, rgba(72, 35, 19, 0.34), transparent 22rem);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 34px;
  box-shadow: 0 38px 120px rgba(65, 34, 19, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
  padding: clamp(22px, 3.4vw, 40px);
  position: relative;
}

.footer-shell::before {
  background-image:
    linear-gradient(rgba(92, 50, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 50, 26, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
}

.footer-glow {
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
}

.footer-glow-one {
  background: rgba(255, 255, 255, 0.62);
  height: 210px;
  left: -62px;
  top: -72px;
  width: 210px;
}

.footer-glow-two {
  background: rgba(122, 63, 34, 0.32);
  bottom: -90px;
  height: 260px;
  right: -74px;
  width: 260px;
}

.footer-topline,
.footer-hero,
.footer-grid,
.footer-contact-strip,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-topline {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.footer-brand-block {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.footer-brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #fffaf0, #f4dfbd);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(65, 34, 19, 0.16);
  display: inline-flex;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  width: 72px;
}

.footer-brand-mark img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  width: 100%;
}

.footer-brand-block h2 {
  background: linear-gradient(100deg, #2b160d 0%, #7a3f22 38%, #9f560d 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.footer-status {
  align-items: center;
  background: rgba(255, 248, 229, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #5b3928;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  padding: 12px 16px;
  white-space: nowrap;
}

.footer-status span {
  animation: footerPulse 1.8s ease-in-out infinite;
  background: #1fb664;
  border-radius: 999px;
  box-shadow: 0 0 0 7px rgba(31, 182, 100, 0.13);
  height: 10px;
  width: 10px;
}

.footer-hero {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  margin-top: 34px;
}

.footer-kicker {
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-hero h3 {
  color: var(--dark);
  font-size: clamp(2.15rem, 4.9vw, 4.65rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  margin-top: 10px;
  max-width: 980px;
}

.footer-hero p:not(.footer-kicker) {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  margin-top: 18px;
  max-width: 780px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.footer-command {
  align-self: end;
  border-radius: 28px;
  min-height: 252px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.footer-command p {
  color: var(--brown);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-command strong {
  color: var(--dark);
  display: block;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.08;
  margin-top: 16px;
}

.footer-command button {
  background: var(--dark);
  border: 0;
  border-radius: 999px;
  color: #fff8e5;
  cursor: pointer;
  font-weight: 950;
  margin-top: 22px;
  padding: 13px 18px;
  margin-left: 45px;
}

.footer-progress {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.footer-progress span {
  animation: footerFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
  background: rgba(255, 248, 229, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  color: #5b3928;
  font-weight: 900;
  padding: 12px;
  text-align: center;
}

.footer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.footer-card {
  border-radius: 24px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.footer-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 60%);
  content: "";
  height: 140px;
  opacity: 0;
  position: absolute;
  right: -44px;
  top: -48px;
  transition: opacity 0.28s ease, transform 0.28s ease;
  width: 140px;
}

.footer-card:hover {
  transform: translateY(-8px);
}

.footer-card:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

.footer-card-icon {
  align-items: center;
  background: linear-gradient(145deg, #5a2b18, #b26f42);
  border-radius: 16px;
  color: #fff8e5;
  display: inline-flex;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.footer-card h4 {
  font-size: 1.2rem;
  font-weight: 950;
  margin-top: 18px;
}

.footer-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 10px;
}

.footer-contact-strip {
  background: rgba(43, 22, 13, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  display: grid;
  gap: 1px;
  grid-template-columns: 1.25fr 0.8fr 0.9fr;
  margin-top: 30px;
  overflow: hidden;
}

.footer-contact-strip a,
.footer-contact-strip button {
  background: rgba(255, 248, 229, 0.08);
  border: 0;
  color: #fff8e5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  font-weight: 950;
  gap: 4px;
  min-width: 0;
  padding: 18px 20px;
  text-align: left;
  transition: background 0.22s ease, transform 0.22s ease;
}

.footer-contact-strip a:hover,
.footer-contact-strip button:hover {
  background: rgba(255, 248, 229, 0.16);
  transform: translateY(-2px);
}

.footer-contact-strip span {
  color: rgba(255, 248, 229, 0.68);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-bottom {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 24px;
}

.footer-bottom p {
  margin: 0;
}

@keyframes footerPulse {
  50% {
    box-shadow: 0 0 0 11px rgba(31, 182, 100, 0.05);
    transform: scale(0.82);
  }
}

@keyframes footerFloat {
  50% {
    transform: translateY(-5px);
  }
}

.case-info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-info-grid article,
.case-flow {
  background: rgba(255, 248, 229, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 20px;
  padding: 18px;
}

.case-info-grid strong,
.case-flow strong {
  color: var(--brown);
  display: block;
  font-weight: 950;
  margin-bottom: 10px;
}

.case-info-grid ul {
  color: var(--muted);
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-info-grid li::before {
  color: var(--red);
  content: "+";
  font-weight: 950;
  margin-right: 7px;
}

.case-flow {
  margin: 16px 0 20px;
}

.case-flow p {
  margin: 0;
}

.modal-close {
  background: #2b160d;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.7rem;
  height: 46px;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 46px;
}


.reveal {
  opacity: 1;
  transform: translateY(38px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-observed {
  opacity: 0;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotateText {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {

    .section-title {
    font-size: clamp(3rem, 3vw, 4.5rem);
    }

  .footer-topline,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-status {
    white-space: normal;
  }

  .footer-hero,
  .footer-grid,
  .footer-contact-strip {
    grid-template-columns: 1fr;
  }

  .footer-command {
    align-self: stretch;
    min-height: auto;
  }
  .footer-command button{
    margin-left: 90px;
  }
  .nav-shell {
    border-radius: 26px;
    flex-wrap: wrap;
  }

  .logo-frame {
    height: 44px;
    width: 44px;
  }

  .nav-brand-text {
    font-size: 1.05rem;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    padding-top: 16px;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    text-align: center;
    width: 100%;
  }

  .rotator-column {
    min-height: 220px;
    transform: translateX(-24px);
  }

  .vertical-line {
    height: 100%;
  }

  .hero-meta-row {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-title-wrap {
    grid-template-columns: 1fr;
  }

  .hero-title-wrap .hero-banner,
  .hero-after .hero-meta-row,
  .hero-after .hero-copy,
  .hero-after .hero-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-stat:nth-child(1),
  .hero-stat:nth-child(3) {
    transform: none;
  }

  .hero-actions {
    flex-wrap: nowrap;
  }

  .hero-actions .pill-btn {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
  }

 
  .hero-stat {
    border-radius: 14px;
    padding: 9px 8px;
  }

  .hero-stat strong {
    font-size: 1.08rem;
  }

  .hero-stat span {
    font-size: 0.62rem;
    line-height: 1.25;
    margin-top: 4px;
  }

  .hero-talk {
    min-height: auto;
    padding: 9px 8px;
  }

  .hero-talk span {
    font-size: 0.68rem;
  }

  .image-slice-stage {
    aspect-ratio: 1280 / 552;
    height: auto;
    min-height: 420px;
  }

  .about-copy {
    min-height: auto;
  }

  .falling-services {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid,
  .pricing-grid,
  .discuss-grid {
    grid-template-columns: 1fr;
  }

  .case-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card.featured {
    transform: none;
  }

  .addons-block,
  .estimator-card {
    grid-template-columns: 1fr;
  }

  .addons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discuss-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-modal .modal-panel {
    padding: 24px;
  }
  .site-footer {
    padding-top: 52px;
  }

  .footer-shell {
    border-radius: 26px;
    padding: 20px;
  }

  .footer-brand-mark {
    border-radius: 18px;
    height: 58px;
    width: 58px;
  }

  .footer-brand-block {
    align-items: flex-start;
  }

  .footer-hero {
  margin-top: 26px;
}

  .footer-hero h3 {
    font-size: clamp(2rem, 13vw, 3.5rem);
  }

  .footer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-actions .pill-btn {
    justify-content: center;
    text-align: center;
  }

  .footer-command,
  .footer-card {
    border-radius: 20px;
    padding: 18px;
  }

  .footer-progress {
    grid-template-columns: 1fr;
  }

  .footer-contact-strip {
    border-radius: 20px;
  }

  .footer-contact-strip a,
  .footer-contact-strip button {
    padding: 16px;
  }

  .hero-title span {
    font-size: clamp(3.45rem, 17vw, 5.4rem);
  }

  .hero-title small {
    font-size: clamp(2.05rem, 10vw, 3.35rem);
  }

  .hero-banner {
    border-radius: 20px;
  }

  .scroll-brand-title span {
    font-size: min(var(--scroll-title-size), 17rem);
  }

  .scroll-brand-title small {
    font-size: min(calc(var(--scroll-title-size) * 0.62), 4.35rem);
  }

  .rotating-badge {
    height: 112px;
    width: 112px;
  }

  .rotating-badge text {
    font-size: 15px;
  }

  .rotating-badge span {
    font-size: 2.25rem;
  }

  .section-space {
    padding: 78px 0;
  }

  .image-slice-stage {
    aspect-ratio: 1280 / 552;
    border-radius: 20px;
    height: auto;
    min-height: auto;
  }

  .falling-services {
    grid-template-columns: 1fr;
  }

  .service-card,
  .portfolio-card,
  .price-card {
    min-height: auto;
  }

  .price-card {
    min-height: auto;
  }

  .project-grid {
    gap: 16px;
  }

  .project-card {
    border-radius: 20px;
    min-height: auto;
    padding: 14px;
  }

  .project-preview {
    height: 150px;
  }

  .project-actions button {
    flex: 1;
    text-align: center;
  }

  .project-case-head,
  .case-preview-grid {
    grid-template-columns: 1fr;
  }

  .project-case-head {
    display: grid;
  }

  .case-info-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .estimator-form,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .estimator-form {
    column-gap: 0;
    row-gap: 24px;
  }

  .comparison-scroll {
    overflow-x: visible;
  }

  .comparison-card table {
    font-size: 0.82rem;
  }

  .comparison-card th,
  .comparison-card td {
    padding: 11px 8px;
    word-break: break-word;
  }

  .comparison-card,
  .estimator-card {
    padding: 20px;
  }

  .addons-grid {
    grid-template-columns: 1fr;
  }

  .estimate-output {
    min-width: 0;
  }

  .contact-form,
  .discuss-aside {
    border-radius: 22px;
    padding: 20px;
  }
}

/* Mobile premium card polish */
@media (max-width: 900px) {
  .about-grid {
    gap: 22px;
  }

  .image-slice-stage,
  .about-copy {
    margin-inline: auto;
    max-width: 680px;
    width: 100%;
  }

  .image-slice-stage {
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(65, 34, 19, 0.18);
    min-height: auto;
  }

  .about-copy {
    border-radius: 24px;
    min-height: auto;
    padding: clamp(24px, 5vw, 32px);
  }

  .about-copy h2 {
    font-size: clamp(2.25rem, 7.8vw, 3.9rem);
    line-height: 0.98;
  }

  .glass-panel,
  .hero-stat,
  .trust-grid span,
  .status-tracker,
  .hero-stat,
  .trust-grid span,
  .status-tracker,
  .service-card,
  .portfolio-card,
  .project-card,
  .price-card,
  .comparison-card,
  .estimator-card,
  .contact-form,
  .discuss-aside,
  .footer-card,
  .footer-command,
  .footer-contact-strip {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .section-space {
    padding: 68px 0;
  }

  .about-grid {
    gap: 18px;
  }

  .image-slice-stage {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(65, 34, 19, 0.16);
  }

  .about-copy {
    border-radius: 22px;
    box-shadow:
      0 18px 52px rgba(65, 34, 19, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
    padding: 22px;
  }

  .about-copy h2 {
    font-size: clamp(2rem, 10.8vw, 3rem);
    line-height: 1;
  }

  .about-copy p {
    font-size: 0.96rem;
    line-height: 1.68;
    margin-top: 14px;
  }

  .falling-services,
  .pricing-grid,
  .project-grid,
  .addons-grid,
  .trust-grid,
  .case-info-grid {
    gap: 16px;
  }

  .hero-stat,
  .trust-grid span,
  .status-tracker,
  .service-card,
  .portfolio-card,
  .project-card,
  .price-card,
  .comparison-card,
  .estimator-card,
  .contact-form,
  .discuss-aside,
  .footer-card,
  .footer-command,
  .addons-grid span {
    border-radius: 20px;
  }

  .hero-stat,
  .trust-grid span,
  .status-tracker,
  .service-card,
  .portfolio-card,
  .price-card {
    padding: 22px;
  }

  .service-icon {
    height: 52px;
    margin-bottom: 22px;
    width: 52px;
  }

  .service-icon svg {
    height: 27px;
    width: 27px;
  }

  .service-card h3,
  .portfolio-card h3,
  .project-card h3,
  .price-card h3 {
    font-size: clamp(1.25rem, 5.8vw, 1.55rem);
    line-height: 1.12;
  }

  .service-card p,
  .portfolio-card p,
  .project-card p,
  .price-card li {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .project-card {
    padding: 16px;
  }

  .project-preview {
    border-radius: 16px;
  }

  .project-actions {
    gap: 10px;
  }

  .project-actions button {
    justify-content: center;
    min-height: 44px;
  }

  .price-card.featured,
  .price-card.featured:hover {
    transform: none;
  }

  .price-card strong {
    font-size: clamp(1.22rem, 6.8vw, 1.65rem);
  }

  .comparison-card,
  .estimator-card {
    border-radius: 20px;
  }

  .addons-grid span {
    min-height: 74px;
    padding: 16px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .estimator-form select {
    min-height: 48px;
  }

  .upload-drop {
    border-radius: 18px;
  }

  .footer-shell {
    border-radius: 24px;
  }
}

@media (max-width: 420px) {
  .about-copy {
    padding: 20px;
  }

  .about-copy h2 {
    font-size: clamp(1.85rem, 10.5vw, 2.55rem);
  }

  .image-slice-stage {
    aspect-ratio: 1 / 1;
  }

  .hero-stat,
  .trust-grid span,
  .status-tracker,
  .service-card,
  .portfolio-card,
  .project-card,
  .price-card,
  .comparison-card,
  .estimator-card,
  .contact-form {
    padding: 16px;
  }

  .footer-shell {
    padding: 18px;
  }
}



/* Mobile two-card grid refinement */
@media (max-width: 620px) {
  .falling-services,
  .addons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .falling-services {
    gap: 12px;
  }

  .service-card {
    min-height: 220px;
    padding: 16px 14px;
  }

  .service-icon {
    height: 44px;
    margin-bottom: 18px;
    width: 44px;
  }

  .service-icon svg {
    height: 22px;
    width: 22px;
  }

  .service-card h3 {
    font-size: clamp(1rem, 4.8vw, 1.22rem);
    line-height: 1.12;
  }

  .service-card p {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-top: 10px;
  }

  .service-card button {
    font-size: 0.78rem;
    margin-top: 16px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .addons-grid {
    gap: 12px;
  }

  .addons-grid span {
    align-items: flex-start;
    display: flex;
    font-size: 0.92rem;
    justify-content: flex-start;
    line-height: 1.25;
    min-height: 72px;
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .falling-services,
  .addons-grid {
    gap: 10px;
  }

  .service-card {
    min-height: 210px;
    padding: 14px 12px;
  }

  .service-card h3 {
    font-size: 0.98rem;
  }

  .service-card p {
    font-size: 0.8rem;
  }

  .service-card button {
    font-size: 0.72rem;
    padding-inline: 10px;
  }

  .addons-grid span {
    font-size: 0.84rem;
    min-height: 68px;
    padding: 12px;
  }
}

/* Mobile side gutter for two-card rows */
@media (max-width: 620px) {
  .falling-services,
  .addons-grid {
    box-sizing: border-box;
    padding-inline: clamp(8px, 2.8vw, 14px);
  }
}

@media (max-width: 380px) {
  .falling-services,
  .addons-grid {
    padding-inline: 8px;
  }
}

/* Professional mobile rhythm: gutters + compact two-card rows */
@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  section.px-4,
  footer.px-4,
  .site-footer.px-4 {
    padding-left: clamp(16px, 4.4vw, 22px) !important;
    padding-right: clamp(16px, 4.4vw, 22px) !important;
  }

  .section-space {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .falling-services,
  .addons-grid,
  .trust-grid,
  .footer-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .falling-services,
  .addons-grid,
  .trust-grid,
  .footer-progress,
  .footer-grid,
  .project-grid,
  .pricing-grid,
  .discuss-grid,
  .form-grid,
  .estimator-form {
    gap: 14px;
  }

  .falling-services,
  .addons-grid {
    padding-left: clamp(6px, 2vw, 10px);
    padding-right: clamp(6px, 2vw, 10px);
  }

  .service-card,
  .addons-grid span,
  .trust-grid span,
  .footer-progress span {
    min-width: 0;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    min-height: 224px;
  }

  .service-card button {
    align-self: flex-start;
    margin-top: auto;
  }

  .addons-grid span,
  .trust-grid span,
  .footer-progress span {
    min-height: 70px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-card {
    min-height: 185px;
  }

  .footer-grid .footer-card:nth-child(3) {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .project-grid,
  .pricing-grid,
  .discuss-grid,
  .form-grid,
  .estimator-form,
  .case-preview-grid,
  .case-info-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-form,
  .discuss-aside,
  .comparison-card,
  .estimator-card,
  .footer-shell,
  .project-card,
  .price-card,
  .about-copy {
    width: 100%;
  }
}

@media (max-width: 430px) {
  section.px-4,
  footer.px-4,
  .site-footer.px-4 {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .falling-services,
  .addons-grid,
  .trust-grid,
  .footer-progress,
  .footer-grid {
    gap: 11px;
  }

  .service-card {
    min-height: 216px;
  }

  .footer-card {
    min-height: 170px;
  }
}

@media (max-width: 350px) {
  .falling-services,
  .addons-grid,
  .trust-grid,
  .footer-progress,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid .footer-card:nth-child(3) {
    grid-column: auto;
  }
}

/* Premium social icons and go-to-top button */
.footer-social-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.social-icon {
  --social-bg: rgba(255, 248, 229, 0.72);
  --social-fg: #5a2b18;
  align-items: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.84), transparent 34%),
    var(--social-bg);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(65, 34, 19, 0.14);
  color: var(--social-fg);
  display: inline-flex;
  height: 50px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transform: translateY(0) rotate(0deg);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease, color 0.32s ease;
  width: 50px;
}

.social-icon::before {
  background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.6), transparent 44%);
  content: "";
  height: 150%;
  left: -120%;
  position: absolute;
  top: -25%;
  transform: rotate(18deg);
  transition: left 0.55s ease;
  width: 64%;
}

.social-icon svg {
  fill: none;
  height: 24px;
  position: relative;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 24px;
  z-index: 1;
}

.social-icon.facebook svg,
.social-icon.linkedin svg {
  fill: currentColor;
  stroke: none;
}

.social-icon:hover {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 68px rgba(65, 34, 19, 0.24);
  color: #fff8e5;
  transform: translateY(-6px) rotate(-3deg) scale(1.05);
}

.social-icon:hover::before {
  left: 128%;
}

.social-icon.instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 52%, #fcb045);
}

.social-icon.facebook:hover {
  background: linear-gradient(135deg, #1877f2, #0b4fad);
}

.social-icon.linkedin:hover {
  background: linear-gradient(135deg, #0a66c2, #064577);
}

.go-top-btn {
  align-items: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.74), transparent 34%),
    linear-gradient(145deg, #5a2b18, #b26f42);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 20px 58px rgba(65, 34, 19, 0.28);
  color: #fff8e5;
  cursor: pointer;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 22px;
  transform: translateY(18px) scale(0.9);
  transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
  width: 54px;
  z-index: 80;
}

.go-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.go-top-btn::after {
  animation: goTopPulse 1.8s ease-in-out infinite;
  border: 1px solid rgba(255, 248, 229, 0.58);
  border-radius: inherit;
  content: "";
  inset: -7px;
  opacity: 0;
  position: absolute;
}

.go-top-btn svg {
  fill: currentColor;
  height: 24px;
  position: relative;
  width: 24px;
  z-index: 1;
}

.go-top-btn:hover {
  box-shadow: 0 26px 76px rgba(65, 34, 19, 0.36);
  transform: translateY(-5px) scale(1.05);
}

@keyframes goTopPulse {
  0%, 100% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 620px) {
  .footer-social-row {
    gap: 10px;
    justify-content: flex-start;
   align-items: center;
   margin-left: 115px;

  }

  .social-icon {
    border-radius: 16px;
    height: 46px;
    width: 46px;
  }

  .go-top-btn {
    bottom: 18px;
    height: 48px;
    right: 16px;
    width: 48px;
  }
}

/* Unique social icon motion upgrade */
.social-icon {
  isolation: isolate;
}

.social-icon::after {
  background:
    conic-gradient(from 90deg, transparent 0 18%, rgba(255, 248, 229, 0.9) 28%, transparent 42% 100%);
  border-radius: 50%;
  content: "";
  height: 78px;
  opacity: 0;
  position: absolute;
  transform: scale(0.55) rotate(0deg);
  transition: opacity 0.32s ease, transform 0.58s cubic-bezier(.2,.9,.2,1);
  width: 78px;
  z-index: -1;
}

.social-icon svg {
  transition: transform 0.44s cubic-bezier(.2,.9,.2,1), filter 0.32s ease;
}

.social-icon:hover {
  animation: socialMagnet 0.72s cubic-bezier(.2,.9,.2,1) both;
}

.social-icon:hover::after {
  opacity: 1;
  transform: scale(1) rotate(220deg);
}

.social-icon:hover svg {
  filter: drop-shadow(0 5px 10px rgba(43, 22, 13, 0.24));
  transform: rotate(-10deg) scale(1.16);
}

.social-icon.instagram:hover svg {
  transform: rotate(10deg) scale(1.16);
}

.social-icon.facebook:hover svg {
  transform: translateY(-2px) rotate(-6deg) scale(1.14);
}

.social-icon.linkedin:hover svg {
  transform: translate(2px, -2px) rotate(6deg) scale(1.14);
}

@keyframes socialMagnet {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  35% { transform: translateY(-8px) rotate(-4deg) scale(1.08); }
  62% { transform: translateY(-4px) rotate(3deg) scale(1.03); }
  100% { transform: translateY(-6px) rotate(-2deg) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .social-icon:hover {
    animation: none;
  }

  .social-icon,
  .social-icon::after,
  .social-icon svg {
    transition-duration: 0.01ms;
  }
}

/* Border-only social icon animation refinement */
.social-icon,
.social-icon.instagram:hover,
.social-icon.facebook:hover,
.social-icon.linkedin:hover, 
.social-icon.call:hover {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.84), transparent 34%),
    rgba(255, 248, 229, 0.72);
  color: #5a2b18;
}

.social-icon:hover {
  border-color: transparent;
  box-shadow: 0 22px 62px rgba(65, 34, 19, 0.18);
}

.social-icon::after {
  background: conic-gradient(
    from var(--ring-angle, 0deg),
    rgba(90, 43, 24, 0),
    rgba(90, 43, 24, 0.95),
    rgba(209, 160, 110, 0.95),
    rgba(255, 248, 229, 0.95),
    rgba(90, 43, 24, 0)
  );
  border-radius: 20px;
  height: calc(100% + 4px);
  inset: -2px;
  opacity: 0;
  transform: none;
  transition: opacity 0.28s ease;
  width: calc(100% + 4px);
  z-index: -2;
}

.social-icon::before {
  background: rgba(255, 248, 229, 0.82);
  border-radius: 16px;
  height: auto;
  inset: 2px;
  left: 2px;
  top: 2px;
  transform: none;
  transition: background 0.28s ease;
  width: auto;
  z-index: -1;
}

.social-icon:hover::before {
  background: rgba(255, 248, 229, 0.9);
  left: 2px;
}

.social-icon:hover::after {
  animation: socialBorderSpin 1.35s linear infinite;
  opacity: 1;
  transform: none;
}

@keyframes socialBorderSpin {
  to { --ring-angle: 360deg; }
}

@property --ring-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* AI chatbot assistant */
.ai-chatbot {
  bottom: 88px;
  position: fixed;
  right: 22px;
  z-index: 90;
}

.chatbot-toggle {
  align-items: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(145deg, #5a2b18, #b26f42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 22px 68px rgba(65, 34, 19, 0.3);
  color: #fff8e5;
  cursor: pointer;
  display: grid;
  height: 62px;
  isolation: isolate;
  justify-items: center;
  line-height: 1;
  overflow: visible;
  place-content: center;
  position: relative;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  width: 62px;
}

.chatbot-toggle strong {
  font-size: 1.18rem;
  font-weight: 950;
}

.chatbot-toggle small {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-top: 3px;
  text-transform: uppercase;
}

.chatbot-toggle-orbit,
.chatbot-toggle::after {
  border: 1px solid rgba(255, 248, 229, 0.58);
  border-radius: inherit;
  content: "";
  inset: -8px;
  opacity: 0.8;
  position: absolute;
  z-index: -1;
}

.chatbot-toggle-orbit {
  animation: chatbotOrbit 3.2s linear infinite;
  border-style: dashed;
}

.chatbot-toggle::after {
  animation: chatbotPulse 2s ease-in-out infinite;
}

.chatbot-toggle:hover {
  box-shadow: 0 28px 82px rgba(65, 34, 19, 0.38);
  transform: translateY(-5px) scale(1.04);
}

.chatbot-panel {
  backdrop-filter: blur(24px) saturate(150%);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(145deg, rgba(255, 248, 229, 0.9), rgba(225, 178, 126, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  bottom: 78px;
  box-shadow: 0 34px 110px rgba(65, 34, 19, 0.28);
  display: grid;
  gap: 14px;
  max-height: min(680px, calc(100vh - 120px));
  opacity: 0;
  overflow: hidden;
  padding: 16px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.28s ease, transform 0.28s ease;
  width: min(390px, calc(100vw - 32px));
}

.ai-chatbot.open .chatbot-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chatbot-head {
  align-items: flex-start;
  background: rgba(43, 22, 13, 0.9);
  border-radius: 22px;
  color: #fff8e5;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.chatbot-head p {
  color: rgba(255, 248, 229, 0.7);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.chatbot-head h3 {
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.05;
  margin: 0;
}

.chatbot-close {
  align-items: center;
  background: rgba(255, 248, 229, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff8e5;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 34px;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
  width: 34px;
}

.chatbot-close:hover {
  background: rgba(255, 248, 229, 0.22);
  transform: rotate(90deg);
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  padding: 2px 4px;
  scrollbar-width: thin;
}

.chat-message {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message span {
  align-items: center;
  background: linear-gradient(145deg, #5a2b18, #b26f42);
  border-radius: 999px;
  color: #fff8e5;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 0.72rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.chat-message.user span {
  display: none;
}

.chat-message p {
  background: rgba(255, 248, 229, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px 18px 18px 6px;
  color: #5f4a3a;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  max-width: 82%;
  padding: 12px 14px;
}

.chat-message.user p {
  background: #5a2b18;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 18px 18px 6px 18px;
  color: #fff8e5;
}

.chat-message.typing p::after {
  animation: typingDots 1.1s steps(4, end) infinite;
  content: "";
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chatbot-suggestions button {
  background: rgba(255, 248, 229, 0.66);
  border: 1px solid rgba(90, 43, 24, 0.16);
  border-radius: 999px;
  color: #7a3f22;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 9px 12px;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.chatbot-suggestions button:hover {
  background: rgba(255, 248, 229, 0.92);
  border-color: rgba(90, 43, 24, 0.28);
  transform: translateY(-2px);
}

.chatbot-form {
  align-items: center;
  background: rgba(255, 248, 229, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 44px;
  padding: 7px;
}

.chatbot-form input {
  background: transparent;
  border: 0;
  color: #21120d;
  font: inherit;
  min-width: 0;
  outline: 0;
  padding: 0 12px;
}

.chatbot-form button {
  align-items: center;
  background: linear-gradient(145deg, #5a2b18, #b26f42);
  border: 0;
  border-radius: 999px;
  color: #fff8e5;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  width: 44px;
}

.chatbot-form button:hover {
  box-shadow: 0 14px 32px rgba(65, 34, 19, 0.24);
  transform: translateY(-2px) rotate(-8deg);
}

.chatbot-form svg {
  fill: currentColor;
  height: 22px;
  width: 22px;
}

@keyframes chatbotOrbit {
  to { transform: rotate(360deg); }
}

@keyframes chatbotPulse {
  50% { opacity: 0.2; transform: scale(1.16); }
}

@keyframes typingDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

@media (max-width: 620px) {
  .ai-chatbot {
    bottom: 78px;
    right: 16px;
  }

  .chatbot-toggle {
    height: 56px;
    width: 56px;
  }

  .chatbot-panel {
    bottom: 70px;
    max-height: calc(100vh - 105px);
    padding: 12px;
    width: calc(100vw - 28px);
  }

  .chatbot-messages {
    max-height: min(330px, 42vh);
  }
}

/* Advanced chatbot controls */
.chatbot-head-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.chatbot-clear {
  background: rgba(255, 248, 229, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff8e5;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 9px 11px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.chatbot-clear:hover {
  background: rgba(255, 248, 229, 0.22);
  transform: translateY(-2px);
}

/* ChatGPT-style chatbot viewport fix and advanced controls */
.ai-chatbot.open .chatbot-panel {
  bottom: 96px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  max-height: none;
  min-height: 0;
  position: fixed;
  right: 22px;
  top: 86px;
  width: min(430px, calc(100vw - 44px));
}

.chatbot-panel {
  overflow: hidden;
}

.chatbot-head {
  min-height: 0;
}

.chatbot-head > div:first-child {
  min-width: 0;
}

.chatbot-head-actions {
  flex-shrink: 0;
}

.chatbot-regenerate,
.chatbot-clear {
  background: rgba(255, 248, 229, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff8e5;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 9px 11px;
  transition: transform 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.chatbot-regenerate:hover,
.chatbot-clear:hover {
  background: rgba(255, 248, 229, 0.22);
  transform: translateY(-2px);
}

.chatbot-messages {
  align-content: start;
  max-height: none;
  min-height: 0;
  overscroll-behavior: contain;
  padding: 4px;
}

.chat-bubble-wrap {
  display: grid;
  gap: 6px;
  max-width: 84%;
}

.chat-message.user .chat-bubble-wrap {
  justify-items: end;
}

.chat-message p {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-copy-btn {
  background: rgba(90, 43, 24, 0.08);
  border: 1px solid rgba(90, 43, 24, 0.14);
  border-radius: 999px;
  color: #7a3f22;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  justify-self: start;
  padding: 5px 9px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chat-copy-btn:hover {
  background: rgba(90, 43, 24, 0.14);
  transform: translateY(-1px);
}

.chatbot-form {
  align-items: end;
  border-radius: 24px;
  grid-template-columns: 1fr auto 44px;
  position: sticky;
  bottom: 0;
}

.chatbot-form textarea {
  background: transparent;
  border: 0;
  color: #21120d;
  font: inherit;
  line-height: 1.45;
  max-height: 112px;
  min-height: 44px;
  min-width: 0;
  outline: 0;
  padding: 11px 12px;
  resize: none;
}

.chatbot-stop {
  align-items: center;
  background: rgba(90, 43, 24, 0.08) !important;
  border: 1px solid rgba(90, 43, 24, 0.16) !important;
  border-radius: 999px !important;
  color: #7a3f22 !important;
  display: none !important;
  font-size: 0.72rem;
  font-weight: 950;
  height: 36px !important;
  justify-content: center;
  margin-bottom: 4px;
  padding: 0 11px;
  width: auto !important;
}

.ai-chatbot.is-generating .chatbot-stop {
  display: inline-flex !important;
}

.ai-chatbot.is-generating .chatbot-send {
  opacity: 0.45;
}

.chatbot-form button:disabled {
  cursor: not-allowed;
}

.chatbot-suggestions {
  max-height: 82px;
  overflow-y: auto;
  padding-right: 2px;
}

@media (max-width: 620px) {
  .ai-chatbot.open .chatbot-panel {
    bottom: 82px;
    left: 10px;
    right: 10px;
    top: 74px;
    width: auto;
  }

  .chatbot-head {
    border-radius: 20px;
    padding: 14px;
  }

  .chatbot-head h3 {
    font-size: 1.05rem;
  }

  .chatbot-head p {
    font-size: 0.62rem;
  }

  .chatbot-regenerate,
  .chatbot-clear {
    font-size: 0.66rem;
    padding: 8px 9px;
  }

  .chatbot-close {
    height: 32px;
    width: 32px;
  }

  .chat-bubble-wrap {
    max-width: 88%;
  }

  .chat-message p {
    font-size: 0.88rem;
    line-height: 1.52;
  }

  .chatbot-form {
    grid-template-columns: 1fr auto 42px;
  }
}

@media (max-width: 390px) {
  .chatbot-head {
    gap: 10px;
  }

  .chatbot-head-actions {
    gap: 5px;
  }

  .chatbot-regenerate {
    display: none;
  }

  .chatbot-suggestions {
    max-height: 70px;
  }
}
