/* Web Development service page — 01 Hero */

.cw-web-development-hero {
  padding: clamp(48px, 6vw, 84px) clamp(20px, 4vw, 40px) clamp(40px, 5vw, 64px);
  background-color: #141210;
  background-image:
    linear-gradient(rgba(243, 239, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 231, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-web-development-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.cw-web-development-hero__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 28px;
  align-items: end;
}

.cw-web-development-hero__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cw-web-development-hero__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #d4f53c;
  letter-spacing: -0.02em;
}

.cw-web-development-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 500px;
}

.cw-web-development-hero__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(243, 239, 231, 0.78);
  text-wrap: pretty;
}

.cw-web-development-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cw-web-development-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cw-web-development-hero__btn--primary {
  background: #d4f53c;
  color: #141210;
  font-weight: 700;
}

.cw-web-development-hero__btn--primary:hover {
  background: #fff;
  color: #141210;
}

.cw-web-development-hero__btn--secondary {
  border: 1px solid rgba(243, 239, 231, 0.3);
  color: #f3efe7;
}

.cw-web-development-hero__btn--secondary:hover {
  border-color: #ff5527;
  color: #f3efe7;
}

.cw-web-development-hero__demo-bar {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-web-development-hero__demo-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #a39c90;
}

.cw-web-development-hero__presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cw-web-development-hero__preset {
  border: 1px solid rgba(243, 239, 231, 0.2);
  background: transparent;
  color: #f3efe7;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cw-web-development-hero__preset:hover {
  border-color: #d4f53c;
}

.cw-web-development-hero__preset.is-active {
  border-color: #d4f53c;
  background: #d4f53c;
  color: #141210;
}

.cw-web-development-hero__viewport {
  margin-top: 12px;
  position: relative;
  height: clamp(380px, 46vw, 520px);
}

.cw-web-development-hero__frame {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  min-width: 250px;
  background: #f3efe7;
  color: #141210;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cw-web-development-hero.is-dragging .cw-web-development-hero__frame {
  transition: none;
}

.cw-web-development-hero__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #e4ddd0;
}

.cw-web-development-hero__chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0431c;
  flex-shrink: 0;
}

.cw-web-development-hero__chrome-dot--muted {
  background: #141210;
  opacity: 0.3;
}

.cw-web-development-hero__chrome-url {
  flex: 1;
  margin: 0 8px;
  background: #f3efe7;
  border-radius: 8px;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #6b645a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-web-development-hero__chrome-size {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #141210;
  white-space: nowrap;
}

.cw-web-development-hero__preview {
  padding: 18px 20px;
  height: calc(100% - 42px);
  overflow: hidden;
}

.cw-web-development-hero__preview-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cw-web-development-hero__preview-brand {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.cw-web-development-hero__preview-menu-wide {
  display: none;
  gap: 16px;
  font-size: 12px;
  color: #4a443c;
  align-items: center;
}

.cw-web-development-hero__preview-menu-wide.is-visible {
  display: flex;
}

.cw-web-development-hero__preview-nav-cta {
  background: #141210;
  color: #f3efe7;
  border-radius: 999px;
  padding: 4px 10px;
}

.cw-web-development-hero__preview-menu-narrow {
  display: none;
  font-size: 18px;
}

.cw-web-development-hero__preview-menu-narrow.is-visible {
  display: block;
}

.cw-web-development-hero__preview-hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.cw-web-development-hero__preview-hero.is-wide {
  grid-template-columns: 1.2fr 0.8fr;
}

.cw-web-development-hero__preview-headline {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-size: 26px;
}

.cw-web-development-hero__preview-hero.is-tablet .cw-web-development-hero__preview-headline {
  font-size: 34px;
}

.cw-web-development-hero__preview-hero.is-desktop .cw-web-development-hero__preview-headline {
  font-size: 44px;
}

.cw-web-development-hero__preview-headline span {
  color: #e0431c;
}

.cw-web-development-hero__preview-lines {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-web-development-hero__preview-lines span {
  display: block;
  height: 8px;
  background: #d8d0c2;
  border-radius: 4px;
}

.cw-web-development-hero__preview-lines span:first-child {
  width: 80%;
}

.cw-web-development-hero__preview-lines span:last-child {
  width: 60%;
}

.cw-web-development-hero__preview-cta {
  margin-top: 14px;
  display: inline-block;
  background: #e0431c;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
}

.cw-web-development-hero__preview-art {
  height: 150px;
  border-radius: 14px;
  background: linear-gradient(135deg, #cfc4f6, #b7a6f5 60%, #d4f53c);
}

.cw-web-development-hero__preview-hero:not(.is-wide) .cw-web-development-hero__preview-art {
  display: none;
}

.cw-web-development-hero__preview-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cw-web-development-hero__preview-cards.is-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cw-web-development-hero__preview-cards.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cw-web-development-hero__preview-card {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  padding: 12px;
}

.cw-web-development-hero__preview-card-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.cw-web-development-hero__preview-card-title {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
}

.cw-web-development-hero__preview-card-line {
  display: block;
  margin-top: 6px;
  height: 6px;
  width: 90%;
  background: #eae4d8;
  border-radius: 3px;
}

.cw-web-development-hero__handle {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 84px;
  border: none;
  border-radius: 999px;
  background: #d4f53c;
  color: #141210;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  touch-action: none;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cw-web-development-hero.is-dragging .cw-web-development-hero__handle {
  transition: none;
}

.cw-web-development-hero__handle:focus-visible {
  outline: 2px solid #ff5527;
  outline-offset: 3px;
}
